From 2b1292d9894bb1d129e81d4f677f48137c4d184a Mon Sep 17 00:00:00 2001 From: Christia Troyer Date: Fri, 8 Sep 2023 03:47:31 -0700 Subject: [PATCH] VACMS-14793: Fix footer rail form and other fixes --- .../va_gov_home/src/EventSubscriber/FormEventSubscriber.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docroot/modules/custom/va_gov_home/src/EventSubscriber/FormEventSubscriber.php b/docroot/modules/custom/va_gov_home/src/EventSubscriber/FormEventSubscriber.php index e9b5d1c23a3..a739988e167 100644 --- a/docroot/modules/custom/va_gov_home/src/EventSubscriber/FormEventSubscriber.php +++ b/docroot/modules/custom/va_gov_home/src/EventSubscriber/FormEventSubscriber.php @@ -41,8 +41,8 @@ public function formAlter(FormAlterEvent $event): void { $admin = $this->permsService->hasAdminRole(TRUE); $this->hubMenuFormAlter($form, $admin); } - if ($event->getFormId() === 'menu_link_content_va-gov-footer_form' || $event->getFormId() === 'menu-link-content-footer-bottom-rail-form') { - $this->hideMenuLinkDescriptionField($form, $admin); + if ($event->getFormId() === 'menu_link_content_va-gov-footer_form' || $event->getFormId() === 'menu_link_content_footer-bottom-rail_form') { + $this->hideMenuLinkDescriptionField($form); } }