By pancho on
Change record status:
Draft (View all draft change records)
Project:
Issue links:
Description:
The block theme hook and its default block.html.twig template are now provided by the System module.
Modules can now use the block theme hook without installing the Block module.
For themes and modules that override or reference block templates
If your override does not reference @block/block.html.twig, no change is needed.
Otherwise replace @block/block.html.twig with @system/block.html.twig in Twig references such as extends and include.
- Before:
-
{% extends '@block/block.html.twig' %} - After:
-
{% extends '@system/block.html.twig' %}
Theme overrides keep their existing filenames, including block.html.twig and block--*.html.twig.
Impacts:
Module developers
Themers