diff --git a/docroot/modules/custom/va_gov_header_footer/src/EventSubscriber/FormEventSubscriber.php b/docroot/modules/custom/va_gov_header_footer/src/EventSubscriber/FormEventSubscriber.php index 1a8503ed30..3fdc8946a3 100644 --- a/docroot/modules/custom/va_gov_header_footer/src/EventSubscriber/FormEventSubscriber.php +++ b/docroot/modules/custom/va_gov_header_footer/src/EventSubscriber/FormEventSubscriber.php @@ -4,7 +4,6 @@ use Drupal\core_event_dispatcher\Event\Form\FormAlterEvent; use Drupal\core_event_dispatcher\FormHookEvents; -use Drupal\va_gov_menus\Traits\MenuFormAlterTrait; use Drupal\va_gov_user\Service\UserPermsService; use Symfony\Component\EventDispatcher\EventSubscriberInterface; @@ -13,8 +12,6 @@ */ class FormEventSubscriber implements EventSubscriberInterface { - use MenuFormAlterTrait; - /** * The VA user permission service. * @@ -62,7 +59,7 @@ public function formAlter(FormAlterEvent $event): void { $formId = $event->getFormId(); $admin = $this->permsService->hasAdminRole(TRUE); if (in_array($formId, $this->menus) && !$admin) { - $this->hideMenuLinkDescriptionField($form); + $form['description']['#access'] = FALSE; } }