Defines an extension (file) object.
Hierarchy
- class \Drupal\Core\Extension\Extension implements \Serializable
File
- core/lib/Drupal/Core/Extension/Extension.php, line 8
Namespace
Drupal\Core\Extension
Members
Name | Modifiers | Type | Description |
---|---|---|---|
Extension::$filename | protected | property | The filename of the main extension file (e.g., 'node.module'). |
Extension::$pathname | protected | property | The relative pathname of the extension (e.g., 'core/modules/node/node.info.yml'). |
Extension::$root | protected | property | The app root. |
Extension::$splFileInfo | protected | property | An SplFileInfo instance for the extension's info file. |
Extension::$type | protected | property | The type of the extension (e.g., 'module'). |
Extension::getExtensionFilename | public | function | Returns the name of the main extension file, if any. |
Extension::getExtensionPathname | public | function | Returns the relative path of the main extension file, if any. |
Extension::getFilename | public | function | Returns the filename of the extension's info file. |
Extension::getName | public | function | Returns the internal name of the extension. |
Extension::getPath | public | function | Returns the relative path of the extension. |
Extension::getPathname | public | function | Returns the relative path and filename of the extension's info file. |
Extension::getType | public | function | Returns the type of the extension. |
Extension::load | public | function | Loads the main extension file, if any. |
Extension::serialize | public | function | Implements Serializable::serialize(). |
Extension::unserialize | public | function | |
Extension::__call | public | function | Re-routes method calls to SplFileInfo. |
Extension::__construct | public | function | Constructs a new Extension object. |
Please login to continue.