function NyanCatThemeEngine::theme
Same name and namespace in other branches
- 11.x core/modules/system/tests/modules/nyan_cat/src/NyanCatThemeEngine.php \Drupal\nyan_cat\NyanCatThemeEngine::theme()
Registers templates that belong to the theme engine.
Overrides ThemeEngineInterface::theme
File
-
core/
modules/ system/ tests/ modules/ nyan_cat/ src/ NyanCatThemeEngine.php, line 24
Class
- NyanCatThemeEngine
- NYAN NYAN NYAN!
Namespace
Drupal\nyan_catCode
public function theme(array $existing, string $type, string $theme, string $path) : ?array {
return drupal_find_theme_templates($existing, '.nyan-cat.html', $path);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.