function ExtensionList::subClassExtension
Same name and namespace in other branches
- 11.x 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.
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.