From c20f1622657b4ed26251ba26884fb8222ddaaea7 Mon Sep 17 00:00:00 2001 From: Andy Broomfield Date: Fri, 20 Dec 2024 11:22:49 +0000 Subject: [PATCH] Remove the unused $build theme page_header Fix #289 Remove the old page_header from the $build array of the service status page controller. This was a left over way of adding the page header from BHCC Drupal 8 / Miggle site and was never used in Localgov Drupal. It's presence was causing a Theme hook page_header not found warning in watchdog. --- .../src/Controller/ServiceStatusPageController.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/modules/localgov_services_status/src/Controller/ServiceStatusPageController.php b/modules/localgov_services_status/src/Controller/ServiceStatusPageController.php index d6267e6..ee4a742 100644 --- a/modules/localgov_services_status/src/Controller/ServiceStatusPageController.php +++ b/modules/localgov_services_status/src/Controller/ServiceStatusPageController.php @@ -70,11 +70,6 @@ public function access(NodeInterface $node): AccessResult { public function build(Node $node) { $build = []; - $build[] = [ - '#theme' => 'page_header', - '#title' => $this->t('Latest service updates'), - ]; - $build[] = [ '#theme' => 'service_status_page', '#items' => $this->serviceStatus->getStatusForPage($node),