- Issue created by @lauriii
📌 Provide a mechanism to mark entire twig templates as deprecated Fixed allows marking templates as deprecated. However, we need a second step to mark theme templates as obsolete so that we can trigger deprecation for any remaining templates and preprocess functions.
/**
* Implements hook_theme().
*/
function mymodule_theme() {
return [
'mymodule_custom_template' => [
'obsolete' => TRUE, // Or possibly a custom message?
],
];
}
Active
11.0 🔥
Last updated