This module allows custom block types to have their own Twig templates for easier theming, similar to how other entities are handled. It also adds helpful classes to custom block templates for improved styling.
If you have ever tried to get a view of custom block types or rendered a custom block type in a reference field you will know that the custom block type doesn't have standard template markup in D8, in fact there might be no wrapping markup around the fields. This module allows custom block types to have their own template block-content.html.twig and it also adds helpful classes for theming that you might find on any other entity.
Follow the core integration request:
https://www.drupal.org/project/drupal/issues/3342998
This module is not compatible with other modules that provide similar functionality such as block_content_suggestions.
Ask your assistant about Block Content Template
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
- block_content Drupal core
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.