function ThemeEngineInterface::theme
Registers templates that belong to the theme engine.
See also
2 methods override ThemeEngineInterface::theme()
- NyanCatThemeEngine::theme in core/
modules/ system/ tests/ modules/ nyan_cat/ src/ NyanCatThemeEngine.php - Registers templates that belong to the theme engine.
- TwigThemeEngine::theme in core/
lib/ Drupal/ Core/ Template/ TwigThemeEngine.php - Registers templates that belong to the theme engine.
File
-
core/
lib/ Drupal/ Core/ Theme/ ThemeEngineInterface.php, line 19
Class
- ThemeEngineInterface
- Defines an interface for a theme engine.
Namespace
Drupal\Core\ThemeCode
public function theme(array $existing, string $type, string $theme, string $path) : ?array;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.