function ThemeExtensionList::subClassExtension
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Extension/ThemeExtensionList.php \Drupal\Core\Extension\ThemeExtensionList::subClassExtension()
File
-
core/
lib/ Drupal/ Core/ Extension/ ThemeExtensionList.php, line 249
Class
- ThemeExtensionList
- Provides a list of available themes.
Namespace
Drupal\Core\ExtensionCode
protected function subClassExtension(Extension $extension) : Theme {
return new Theme($this->root, $extension->getPathname(), $extension->info, $extension->getExtensionFilename());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.