From 00e076e675931f7823b149021c3ff352bbd4f54a Mon Sep 17 00:00:00 2001 From: Alistair Wearring <95761929+AWearring@users.noreply.github.com> Date: Tue, 15 Oct 2024 17:02:15 +0100 Subject: [PATCH] Resolved spacing issues --- localgov_alert_banner.install | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/localgov_alert_banner.install b/localgov_alert_banner.install index 92be53a..1a08623 100644 --- a/localgov_alert_banner.install +++ b/localgov_alert_banner.install @@ -231,18 +231,18 @@ function localgov_alert_banner_update_9002() { * from the toolbar. */ function localgov_alert_banner_update_10002() { -$module_handler = \Drupal::service('module_handler'); + $module_handler = \Drupal::service('module_handler'); -$perms[] = 'view the administration theme'; -if ($module_handler->moduleExists('node')) { - $perms[] = 'access content overview'; -} -if ($module_handler->moduleExists('toolbar')) { - $perms[] = 'access toolbar'; -} + $perms[] = 'view the administration theme'; + if ($module_handler->moduleExists('node')) { + $perms[] = 'access content overview'; + } + if ($module_handler->moduleExists('toolbar')) { + $perms[] = 'access toolbar'; + } -// Add and revoke permissions if emergency publisher exists. -if (Role::load('emergency_publisher') instanceof RoleInterface) { + // Add and revoke permissions if emergency publisher exists. + if (Role::load('emergency_publisher') instanceof RoleInterface) { user_role_grant_permissions('emergency_publisher', $perms); user_role_revoke_permissions('emergency_publisher', ['access administration pages']); }