Skip to content
Snippets Groups Projects
Commit 62677089 authored by Stew West's avatar Stew West
Browse files

Issue #3445599: Compatibility with Block_field

parent c20a2fde
No related branches found
No related tags found
1 merge request!16Issue #3445599: Compatibility with Block_field
......@@ -18,7 +18,10 @@ function sector_theme_theme_suggestions_block_alter(array &$suggestions, array $
if (isset($variables['elements']['#id'])) {
$block = Block::load($variables['elements']['#id']);
$region = $block->getRegion();
if ($block && $block->getRegion()) {
$region = $block->getRegion();
}
}
if (isset($variables['elements']['#derivative_plugin_id'])) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment