From 468dd8a531cc97df9d9393381a5d8879a16e3df5 Mon Sep 17 00:00:00 2001 From: Thinkshout Automation Date: Wed, 31 Jul 2024 13:22:17 -0700 Subject: [PATCH] Reusable inline blocks don't have the inline_block plugin. --- themes/custom/ts_wrin/ts_wrin.theme | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/themes/custom/ts_wrin/ts_wrin.theme b/themes/custom/ts_wrin/ts_wrin.theme index 3c83feb56..7c544fdd9 100644 --- a/themes/custom/ts_wrin/ts_wrin.theme +++ b/themes/custom/ts_wrin/ts_wrin.theme @@ -219,7 +219,15 @@ function ts_wrin_preprocess_block(array &$variables) { $variables['white_logo'] = \Drupal::service('file_url_generator')->generateString($logo_path); } - if ($variables['plugin_id'] == 'inline_block:person_listing') { + if ( + $variables['plugin_id'] == 'inline_block:person_listing' + || + ( + isset($variables["content"]["#block_content"]->type->target_id) + && + $variables["content"]["#block_content"]->type->target_id == 'person_listing' + ) + ) { $variables["content"]["field_featured_experts"]["#title"] = $variables["elements"]["#configuration"]["label"]; } }