Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
framework
Module
FullModuleList.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\Module
;
7
13
class
FullModuleList
implements
ModuleListInterface
14
{
20
private
$loader;
21
27
private
$data;
28
34
public
function
__construct
(
ModuleList
\Loader $loader)
35
{
36
$this->loader =
$loader
;
37
}
38
43
public
function
getAll
()
44
{
45
if
(
null
=== $this->data) {
46
$this->data = $this->loader->load();
47
}
48
return
$this->data;
49
}
50
55
public
function
getOne
(
$name
)
56
{
57
$data = $this->
getAll
();
58
return
$data[
$name
] ??
null
;
59
}
60
64
public
function
getNames
()
65
{
66
$data = $this->
getAll
();
67
return
array_keys($data);
68
}
69
73
public
function
has
(
$name
)
74
{
75
$this->
getAll
();
76
return
isset($this->data[
$name
]);
77
}
78
}
Magento\Framework\Module\ModuleListInterface
Definition:
ModuleListInterface.php:14
Magento\Framework\Module\FullModuleList\has
has($name)
Definition:
FullModuleList.php:73
$loader
$loader
Definition:
autoload.php:8
Magento\Framework\Module\FullModuleList\getAll
getAll()
Definition:
FullModuleList.php:43
Magento\Framework\Module
Definition:
ConflictChecker.php:6
Magento\Framework\Module\ModuleList
Definition:
ModuleList.php:17
Magento\Framework\Module\FullModuleList\__construct
__construct(ModuleList\Loader $loader)
Definition:
FullModuleList.php:34
Magento\Framework\Module\FullModuleList
Definition:
FullModuleList.php:13
Magento\Framework\Module\FullModuleList\getOne
getOne($name)
Definition:
FullModuleList.php:55
$name
if(!isset($_GET['name'])) $name
Definition:
log.php:14
Magento\Framework\Module\FullModuleList\getNames
getNames()
Definition:
FullModuleList.php:64