Skip to content
Snippets Groups Projects
Commit 1bf32b1a authored by Alberto Siles's avatar Alberto Siles Committed by Alberto Siles
Browse files

Issue #3133113 by hatuhay: Update causes DomainException: When a #lazy_builder callback is

parent 13ef4cb8
No related branches found
No related tags found
No related merge requests found
diff --git a/bootstrap_barrio.theme b/bootstrap_barrio.theme
index 61d6bb2..8b9dd2c 100644
--- a/bootstrap_barrio.theme
+++ b/bootstrap_barrio.theme
@@ -348,7 +348,9 @@ function bootstrap_barrio_preprocess_region(&$variables) {
* Implements hook_preprocess_HOOK() for block.html.twig.
*/
function bootstrap_barrio_preprocess_block(&$variables) {
- $variables['content']['#attributes']['block'] = $variables['attributes']['id'];
+ if ($variables['base_plugin_id'] == 'system_menu_block') {
+ $variables['content']['#attributes']['block'] = $variables['attributes']['id'];
+ }
// Add a clearfix class to system branding blocks.
if ($variables['plugin_id'] == 'system_branding_block') {
$variables['attributes']['class'][] = 'clearfix';
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