During the rebuild of inviqa.com and inviqa.de onto Drupal 8 and whilst using Layout Builder, we noticed that the same template suggestions weren’t available to both custom and inline blocks of the same block type.
This module adds extra, generic theme suggestions based on the name of the active theme - that apply to both inline and custom blocks, so you can have one template that applies to both!
Examples
Custom block suggestions
Before:
0 => "block__block_content"
1 => "block__block_content__3a7871ce_3f9c_4d2b_b05d_e8ee08840e87"
After:
0 => "block__block_content"
1 => "block__bartik__basic"
2 => "block__block_content__3a7871ce_3f9c_4d2b_b05d_e8ee08840e87"
3 => "block__bartik__block_content__basic"
Inline block suggestions
Before:
0 => "block__layout_builder"
1 => "block__inline_block"
2 => "block__inline_block__basic"
After:
0 => "block__layout_builder"
1 => "block__inline_block"
2 => "block__bartik__basic"
3 => "block__inline_block__basic"
4 => "block__bartik__inline_block__basic"
Supporting organizations:
Initial development
Ongoing development and maintenance
Project information
Maintenance fixes only
Considered feature-complete by its maintainers.- Ecosystem: Layout Builder
317 sites report using this module
- Created by opdavies on , updated
Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.
Releases
8.x-1.0-rc4
released 26 March 2025
Works with Drupal: ^8 || ^9 || ^10 || ^11
Drupal 11 compatibility
Install:
Development version: 8.x-1.x-dev updated 26 Mar 2025 at 23:34 UTC

