function deprecated_twig_template_theme
Same name in other branches
- 11.x core/modules/system/tests/modules/deprecated_twig_template/deprecated_twig_template.module \deprecated_twig_template_theme()
Implements hook_theme().
File
-
core/
modules/ system/ tests/ modules/ deprecated_twig_template/ deprecated_twig_template.module, line 11
Code
function deprecated_twig_template_theme() {
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.