diff --git a/core/modules/system/src/Controller/BatchController.php b/core/modules/system/src/Controller/BatchController.php index 2e01c5b..dcf08c4 100644 --- a/core/modules/system/src/Controller/BatchController.php +++ b/core/modules/system/src/Controller/BatchController.php @@ -61,7 +61,7 @@ public function batchPage(Request $request) { return $output; } elseif (isset($output)) { - $title = isset($output['#title']) ? $output['#title'] : NULL; + $title = isset($output['#title']) ? $output['#title'] : ''; $page = [ '#type' => 'page', '#title' => $title, @@ -69,7 +69,7 @@ public function batchPage(Request $request) { 'content' => $output, ]; - // Also inject title as a page header (if available). + // Place the title in the header region. if ($title) { $page['header'] = [ '#type' => 'page_title',