function ExtensionList::subClassExtension
Same name and namespace in other branches
- main core/lib/Drupal/Core/Extension/ExtensionList.php \Drupal\Core\Extension\ExtensionList::subClassExtension()
Allows subclasses to convert the extension into a specific subclass.
Parameters
\Drupal\Core\Extension\Extension $extension: The extension.
Return value
\Drupal\Core\Extension\Extension Either the unchanged Extension object or a subclass of Extension.
1 call to ExtensionList::subClassExtension()
- ExtensionList::doList in core/
lib/ Drupal/ Core/ Extension/ ExtensionList.php - Builds the list of extensions.
1 method overrides ExtensionList::subClassExtension()
- ThemeExtensionList::subClassExtension in core/
lib/ Drupal/ Core/ Extension/ ThemeExtensionList.php - Allows subclasses to convert the extension into a specific subclass.
File
-
core/
lib/ Drupal/ Core/ Extension/ ExtensionList.php, line 335
Class
- ExtensionList
- Provides available extensions.
Namespace
Drupal\Core\ExtensionCode
protected function subClassExtension(Extension $extension) : Extension {
return $extension;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.