function DeprecatedTwigTemplateHooks::theme
Implements hook_theme().
File
-
core/
modules/ system/ tests/ modules/ deprecated_twig_template/ src/ Hook/ DeprecatedTwigTemplateHooks.php, line 17
Class
- DeprecatedTwigTemplateHooks
- Hook implementations for deprecated_twig_template.
Namespace
Drupal\deprecated_twig_template\HookCode
public function theme() : array {
return [
'deprecated_template' => [
'variables' => [
'message' => NULL,
],
'deprecated' => 'The "deprecated-template.html.twig" template is deprecated in drupal:X.0.0 and is removed from drupal:Y.0.0. Use another template instead. See https://www.example.com',
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.