diff --git a/core/modules/block/block.module b/core/modules/block/block.module index 1c34d22..1ea5c49 100644 --- a/core/modules/block/block.module +++ b/core/modules/block/block.module @@ -570,6 +570,7 @@ function template_preprocess_block(&$variables) { $variables['block'] = (object) array_merge($variables['elements']['#block']->getDefinition(), $variables['elements']['#block']->getConfig()); // If the block title is configured to be hidden, set it to an empty string. if (empty($variables['block']->display_title)) { + $variables['block']->hidden_title = $variables['block']->subject; $variables['block']->subject = ''; } if (!empty($variables['elements']['#title']) && empty($variables['block']->subject)) { diff --git a/core/modules/block/lib/Drupal/block/BlockBase.php b/core/modules/block/lib/Drupal/block/BlockBase.php index 2c73b8d..1da997a 100644 --- a/core/modules/block/lib/Drupal/block/BlockBase.php +++ b/core/modules/block/lib/Drupal/block/BlockBase.php @@ -33,6 +33,7 @@ public function settings() { $settings += array( 'status' => TRUE, 'cache' => DRUPAL_NO_CACHE, + 'display_title' => TRUE, ); return $settings; }