function ThemeManager::getThemeEngine
Returns the theme engine if it exists.
Parameters
string $name: The name of the theme engine.
Return value
\Drupal\Core\Theme\ThemeEngineInterface|null The theme engine or NULL.
Overrides ThemeManagerInterface::getThemeEngine
1 call to ThemeManager::getThemeEngine()
- ThemeManager::render in core/
lib/ Drupal/ Core/ Theme/ ThemeManager.php - Generates themed output.
File
-
core/
lib/ Drupal/ Core/ Theme/ ThemeManager.php, line 661
Class
- ThemeManager
- Provides the default implementation of a theme manager.
Namespace
Drupal\Core\ThemeCode
public function getThemeEngine(string $name) : ?ThemeEngineInterface {
return $this->themeEngines
->has($name) ? $this->themeEngines
->get($name) : NULL;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.