Get template suggestions for layout templates
The layout file itself that i’m overriding is in Drupal core:
core/themes/stable/templates/layout/layout--one-col.html.twig
but i think its use (instead of a node template) is in my case being triggered by Display Suite (ds). I’m not sure that matters.
Vaguely related:
- https://opensenselabs.com/blog/tech/drupal-display-suite-layout-site-building-theming
- https://medium.com/@sarahcodes/custom-block-type-for-hero-banners-in-drupal-8-7d0adb665fd3
- https://www.webwash.net/using-display-suite-drupal-8-how-to-customize-content-pages/
- https://drupal.stackexchange.com/questions/266972/layouts-versus-theme-templates
- http://www.pixelite.co.nz/article/10-things-i-learnt-building-in-drupal-8/ - Suzanne
- https://www.chapterthree.com/blog/paragraphs-vs-eck-drupal-8 - Zakiya Khabir
- https://thejibe.com/articles/applying-bem-inspired-classes-to-your-drupal-8-theme - Leah Wagner
/**
- Implements hook_theme_suggestions_HOOK_alter() for form templates.
- @param array $suggestions
- @param array $variables */ function THEMENAME_theme_suggestions_block_alter(array &$suggestions, array $variables) { // Block suggestions for custom block bundles. if (isset($variables[’elements’][‘content’][’#block_content’])) { array_splice($suggestions, 1, 0, ‘block__bundle__’ . $variables[’elements’][‘content’][’#block_content’]->bundle()); } }