function TwigThemeEngine::theme

Registers templates that belong to the theme engine.

Overrides ThemeEngineInterface::theme

File

core/lib/Drupal/Core/Template/TwigThemeEngine.php, line 25

Class

TwigThemeEngine
Twig theme engine.

Namespace

Drupal\Core\Template

Code

public function theme(array $existing, string $type, string $theme, string $path) : array {
  return drupal_find_theme_templates($existing, self::EXTENSION, $path);
}

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