Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
getPaths ($type) | |
getPath ($type, $componentName) | |
Static Public Member Functions | |
static | register ($type, $componentName, $path) |
Data Fields | |
const | MODULE = 'module' |
const | LIBRARY = 'library' |
const | THEME = 'theme' |
const | LANGUAGE = 'language' |
const | SETUP = 'setup' |
Provides ability to statically register components.
@api
Definition at line 16 of file ComponentRegistrar.php.
getPath | ( | $type, | |
$componentName | |||
) |
{Get path of a component if it is already registered
string | $type | |
string | $componentName |
Implements ComponentRegistrarInterface.
Definition at line 71 of file ComponentRegistrar.php.
getPaths | ( | $type | ) |
{Get list of registered Magento componentsReturns an array where key is fully-qualified component name and value is absolute path to component
string | $type |
Implements ComponentRegistrarInterface.
Definition at line 62 of file ComponentRegistrar.php.
|
static |
Sets the location of a component.
string | $type | component type |
string | $componentName | Fully-qualified component name |
string | $path | Absolute file path to the component |
Definition at line 46 of file ComponentRegistrar.php.
const LANGUAGE = 'language' |
Definition at line 24 of file ComponentRegistrar.php.
const LIBRARY = 'library' |
Definition at line 22 of file ComponentRegistrar.php.
const MODULE = 'module' |
#+ Different types of components
Definition at line 21 of file ComponentRegistrar.php.
const SETUP = 'setup' |
Definition at line 25 of file ComponentRegistrar.php.
const THEME = 'theme' |
Definition at line 23 of file ComponentRegistrar.php.