class ThemeEngineExtensionList
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Extension/ThemeEngineExtensionList.php \Drupal\Core\Extension\ThemeEngineExtensionList
- 10 core/lib/Drupal/Core/Extension/ThemeEngineExtensionList.php \Drupal\Core\Extension\ThemeEngineExtensionList
- 8.9.x core/lib/Drupal/Core/Extension/ThemeEngineExtensionList.php \Drupal\Core\Extension\ThemeEngineExtensionList
Provides a list of available theme engines.
@internal This class is not yet stable and therefore there are no guarantees that the internal implementations including constructor signature and protected properties / methods will not change over time. This will be reviewed after https://www.drupal.org/project/drupal/issues/2940481
Hierarchy
- class \Drupal\Core\Extension\ExtensionList
- class \Drupal\Core\Extension\ThemeEngineExtensionList extends \Drupal\Core\Extension\ExtensionList
Expanded class hierarchy of ThemeEngineExtensionList
3 files declare their use of ThemeEngineExtensionList
- InstallerThemeEngineExtensionList.php in core/
lib/ Drupal/ Core/ Installer/ InstallerThemeEngineExtensionList.php - LegacyExtensionPathResolverTest.php in core/
tests/ Drupal/ KernelTests/ Core/ Extension/ LegacyExtensionPathResolverTest.php - ThemeExtensionListTest.php in core/
tests/ Drupal/ Tests/ Core/ Extension/ ThemeExtensionListTest.php
1 string reference to 'ThemeEngineExtensionList'
- core.services.yml in core/
core.services.yml - core/core.services.yml
1 service uses ThemeEngineExtensionList
File
-
core/
lib/ Drupal/ Core/ Extension/ ThemeEngineExtensionList.php, line 14
Namespace
Drupal\Core\ExtensionView source
class ThemeEngineExtensionList extends ExtensionList {
/**
* {@inheritdoc}
*/
protected $defaults = [
'dependencies' => [],
'description' => '',
'package' => 'Other',
'version' => NULL,
'php' => \Drupal::MINIMUM_PHP,
];
/**
* {@inheritdoc}
*/
protected function getInstalledExtensionNames() {
// Theme engines do not have an 'install' state, so return names of all
// discovered theme engines.
return array_keys($this->extensions);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.