class DeprecatedTwigTemplateHooks
Hook implementations for deprecated_twig_template.
Hierarchy
- class \Drupal\deprecated_twig_template\Hook\DeprecatedTwigTemplateHooks
Expanded class hierarchy of DeprecatedTwigTemplateHooks
File
-
core/
modules/ system/ tests/ modules/ deprecated_twig_template/ src/ Hook/ DeprecatedTwigTemplateHooks.php, line 12
Namespace
Drupal\deprecated_twig_template\HookView source
class DeprecatedTwigTemplateHooks {
/**
* Implements hook_theme().
*/
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',
],
];
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
DeprecatedTwigTemplateHooks::theme | public | function | Implements hook_theme(). |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.