diff --git a/core/modules/views/lib/Drupal/views/Plugin/block/block/ViewsBlock.php b/core/modules/views/lib/Drupal/views/Plugin/block/block/ViewsBlock.php index 09a6c01..577fc94 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/block/block/ViewsBlock.php +++ b/core/modules/views/lib/Drupal/views/Plugin/block/block/ViewsBlock.php @@ -36,6 +36,19 @@ public function __construct(array $configuration, $plugin_id, DiscoveryInterface $this->view->setDisplay($display_id); } + public function configureWrapper($form, &$form_state) { + $form = parent::configureWrapper($form, $form_state); + + $config = $this->getConfig(); + + // Set the default subject to '' so the views internal title is used. + if (isset($config['id'])) { + $form['settings']['title']['#default_value'] = ''; + } + return $form; + } + + /** * Implements BlockInterface::access(). */