function ThemeManagerInterface::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.

1 method overrides ThemeManagerInterface::getThemeEngine()
ThemeManager::getThemeEngine in core/lib/Drupal/Core/Theme/ThemeManager.php
Returns the theme engine if it exists.

File

core/lib/Drupal/Core/Theme/ThemeManagerInterface.php, line 197

Class

ThemeManagerInterface
Provides a high level access to the active theme and methods to use it.

Namespace

Drupal\Core\Theme

Code

public function getThemeEngine(string $name) : ?ThemeEngineInterface;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.