It is possible via /admin/structure/block/block-content/types to create custom block types:
How do I retrieve this type again with a concrete instance of this block in order to adjust for example the theme hook suggestions. I tried bundle, but it all goes as block_content
So let’s see I have a /admin/structure/block/block-content/manage/requirements, I would like to get the requirements from the actual block instance in theme_suggestions_block_alter
My current state:
function mytheme_theme_suggestions_block_alter(array &$suggestions, array $variables){ if (isset($variables['elements']['content']['#block_content'])) { kint($variables['elements']['content']['#block_content']->getEntityTypeId()); // <-- this is just 'block_content' } }