function ThemeManagerInterface::getThemeEngine

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Theme/ThemeManagerInterface.php \Drupal\Core\Theme\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.

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.