X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fcore%2Fmodules%2Fsystem%2Fsrc%2FController%2FBatchController.php;fp=web%2Fcore%2Fmodules%2Fsystem%2Fsrc%2FController%2FBatchController.php;h=2e01c5bae1232f8db5a79e543416f6e914fdfd8a;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hp=7975dcc43869205bd7c8209e5299cd9dab2570c3;hpb=aea91e65e895364e460983b890e295aa5d5540a5;p=yaffs-website diff --git a/web/core/modules/system/src/Controller/BatchController.php b/web/core/modules/system/src/Controller/BatchController.php index 7975dcc43..2e01c5bae 100644 --- a/web/core/modules/system/src/Controller/BatchController.php +++ b/web/core/modules/system/src/Controller/BatchController.php @@ -61,11 +61,22 @@ class BatchController implements ContainerInjectionInterface { return $output; } elseif (isset($output)) { + $title = isset($output['#title']) ? $output['#title'] : NULL; $page = [ '#type' => 'page', + '#title' => $title, '#show_messages' => FALSE, 'content' => $output, ]; + + // Also inject title as a page header (if available). + if ($title) { + $page['header'] = [ + '#type' => 'page_title', + '#title' => $title, + ]; + } + return $page; } }