class UnusedModulesExtensionDecorator in Unused Modules 8
Decorates the core Extension object.
Hierarchy
- class \Drupal\Core\Extension\Extension
- class \Drupal\unused_modules\UnusedModulesExtensionDecorator
Expanded class hierarchy of UnusedModulesExtensionDecorator
File
- src/
UnusedModulesExtensionDecorator.php, line 10
Namespace
Drupal\unused_modulesView source
class UnusedModulesExtensionDecorator extends Extension {
/**
* The Extension object.
*
* @var \Drupal\Core\Extension\Extension
*/
protected $extension;
/**
* TRUE if the module is enabled. Defaults to FALSE.
*
* @var bool
*/
public $moduleIsEnabled = FALSE;
/**
* Basepath of the project.
*
* @var string
*/
public $projectPath = '';
/**
* Name of the project.
*
* @var string
*/
public $projectName = '';
/**
* TRUE if the project contains enabled modules. Defaults to FALSE.
*
* @var bool
*/
public $projectHasEnabledModules = FALSE;
/**
* TRUE if the parser fails.
*
* @var bool
*/
public $parsingError = FALSE;
/**
* UnusedModulesExtensionDecorator constructor.
*
* @param \Drupal\Core\Extension\Extension $extension
* The Extension object.
*/
public function __construct(Extension $extension) {
$this->extension = $extension;
}
/**
* Inherited from Extension.
*/
public function getPathname() {
return $this->extension
->getPathname();
}
/**
* Inherited from Extension.
*/
public function getName() {
return $this->extension
->getName();
}
/**
* Inherited from Extension.
*/
public function getSubpath() {
return $this->extension->subpath;
}
/**
* Inherited from Extension.
*/
public function getOrigin() {
return $this->extension->origin;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Extension:: |
protected | property | The filename of the main extension file (e.g., 'node.module'). | |
Extension:: |
protected | property | The relative pathname of the extension (e.g., 'core/modules/node/node.info.yml'). | |
Extension:: |
protected | property | The app root. | |
Extension:: |
protected | property | An SplFileInfo instance for the extension's info file. | |
Extension:: |
protected | property | The type of the extension (e.g., 'module'). | |
Extension:: |
public | function | Returns the name of the main extension file, if any. | |
Extension:: |
public | function | Returns the relative path of the main extension file, if any. | |
Extension:: |
public | function | Returns the filename of the extension's info file. | |
Extension:: |
public | function | Returns the relative path of the extension. | |
Extension:: |
public | function | Returns the type of the extension. | |
Extension:: |
public | function | Loads the main extension file, if any. | |
Extension:: |
public | function | Re-routes method calls to SplFileInfo. | |
Extension:: |
public | function | Magic method implementation to serialize the extension object. | |
Extension:: |
public | function | Magic method implementation to unserialize the extension object. | |
UnusedModulesExtensionDecorator:: |
protected | property | The Extension object. | |
UnusedModulesExtensionDecorator:: |
public | property | TRUE if the module is enabled. Defaults to FALSE. | |
UnusedModulesExtensionDecorator:: |
public | property | TRUE if the parser fails. | |
UnusedModulesExtensionDecorator:: |
public | property | TRUE if the project contains enabled modules. Defaults to FALSE. | |
UnusedModulesExtensionDecorator:: |
public | property | Name of the project. | |
UnusedModulesExtensionDecorator:: |
public | property | Basepath of the project. | |
UnusedModulesExtensionDecorator:: |
public | function |
Inherited from Extension. Overrides Extension:: |
|
UnusedModulesExtensionDecorator:: |
public | function | Inherited from Extension. | |
UnusedModulesExtensionDecorator:: |
public | function |
Inherited from Extension. Overrides Extension:: |
|
UnusedModulesExtensionDecorator:: |
public | function | Inherited from Extension. | |
UnusedModulesExtensionDecorator:: |
public | function |
UnusedModulesExtensionDecorator constructor. Overrides Extension:: |