Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (DeploymentConfig $config, ModuleList\Loader $loader) | |
getAll () | |
getOne ($name) | |
getNames () | |
has ($name) | |
isModuleInfoAvailable () | |
A list of modules in the Magento application
Encapsulates information about whether modules are enabled or not. Represents only enabled modules through its interface
Definition at line 17 of file ModuleList.php.
__construct | ( | DeploymentConfig | $config, |
ModuleList\Loader | $loader | ||
) |
Constructor
DeploymentConfig | $config | |
ModuleList\Loader | $loader |
Definition at line 55 of file ModuleList.php.
getAll | ( | ) |
{Get list of all modulesReturns an array where key is module name and value is an array with module meta-information
Note that this triggers loading definitions of all existing modules in the system. Use this method only when you actually need modules' declared meta-information.
Implements ModuleListInterface.
Definition at line 69 of file ModuleList.php.
getNames | ( | ) |
{Enumerates the list of names of modules
Implements ModuleListInterface.
Definition at line 99 of file ModuleList.php.
getOne | ( | $name | ) |
{Get module declaration dataReturns an array with meta-information about one module by specified name
string | $name |
Implements ModuleListInterface.
Definition at line 90 of file ModuleList.php.
has | ( | $name | ) |
{Checks whether the specified module is present in the list
string | $name |
Implements ModuleListInterface.
Definition at line 112 of file ModuleList.php.
isModuleInfoAvailable | ( | ) |
Checks if module list information is available.
Definition at line 126 of file ModuleList.php.