function 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_cat

Code

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.