diff --git a/web/modules/custom/custom/custom.module b/web/modules/custom/custom/custom.module index 1d9485398..709199abe 100644 --- a/web/modules/custom/custom/custom.module +++ b/web/modules/custom/custom/custom.module @@ -17,3 +17,13 @@ function custom_entity_type_build(array &$entityTypes): void { $entityTypes['node']->setClass(Node::class); } } + +/** + * Implements hook_preprocess_HOOK(). + */ +function custom_preprocess_block(array &$variables): void { + // Add the 'markup' class to blocks. + if (in_array($variables['plugin_id'], ['views_block:featured_blog_posts-block_1'])) { + $variables['attributes']['class'][] = 'markup'; + } +}