diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/area/Title.php b/core/modules/views/lib/Drupal/views/Plugin/views/area/Title.php index 5cd4b26..56950a6 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/area/Title.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/area/Title.php @@ -52,9 +52,8 @@ public function buildOptionsForm(&$form, &$form_state) { public function preRender(array $results) { parent::preRender($results); - // If a title is provided, process it. If the area is for the empty - // result set, ensure there are no results. - if (!empty($this->options['title']) && ($this->areaType != 'empty' || empty($results))) { + // If a title is provided, process it. + if (!empty($this->options['title'])) { $value = $this->globalTokenReplace($this->options['title']); $this->view->setTitle($this->sanitizeValue($value, 'xss_admin'), PASS_THROUGH); }