diff --git a/core/modules/block/block.module b/core/modules/block/block.module index ee6a4a11ea..cece484174 100644 --- a/core/modules/block/block.module +++ b/core/modules/block/block.module @@ -214,11 +214,6 @@ function template_preprocess_block(&$variables) { $variables['derivative_plugin_id'] = $variables['elements']['#derivative_plugin_id']; $variables['label'] = !empty($variables['configuration']['label_display']) ? $variables['configuration']['label'] : ''; $variables['content'] = $variables['elements']['content']; - // A block's label is configuration: it is static. Allow dynamic labels to be - // set in the render array. - if (isset($variables['elements']['content']['#title']) && !empty($variables['configuration']['label_display'])) { - $variables['label'] = $variables['elements']['content']['#title']; - } // Create a valid HTML ID and make sure it is unique. if (!empty($variables['elements']['#id'])) {