function THEMENAME_theme_suggestions_block_alter(array &$suggestions, array $variables) { | |
if (isset($variables['elements']['content']['#block_content'])) { | |
$suggestions[] = 'block__' . $variables['elements']['content']['#block_content']->bundle(); | |
} | |
} |
This comment has been minimized.
This comment has been minimized.
Thanks, works great! |
This comment has been minimized.
This comment has been minimized.
Thanks @markconroy, that was exactly what I needed! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comment has been minimized.
just a quick tweak so that you can still override a specific instance of a custom block: