deprecated_twig_template.module
Same filename in other branches
This is a test module for deprecated twig templates.
File
-
core/
modules/ system/ tests/ modules/ deprecated_twig_template/ deprecated_twig_template.module
View source
<?php
/**
* @file
* This is a test module for deprecated twig templates.
*/
/**
* Implements hook_theme().
*/
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',
],
];
}
Functions
Title | Deprecated | Summary |
---|---|---|
deprecated_twig_template_theme | Implements hook_theme(). |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.