From f459d69f66b7fea9327882c30ef21c1cbad9826a Mon Sep 17 00:00:00 2001 From: Christia Troyer Date: Mon, 18 Sep 2023 08:35:26 -0700 Subject: [PATCH] VACMS-14793: Rename MenuAlterTrait for clarity --- .../src/EventSubscriber/FormEventSubscriber.php | 4 ++-- .../src/Traits/{MenuFormAlter.php => MenuFormAlterTrait.php} | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename docroot/modules/custom/va_gov_header_footer/src/Traits/{MenuFormAlter.php => MenuFormAlterTrait.php} (93%) 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 d7148cf4031..38840b6b06d 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,7 @@ use Drupal\core_event_dispatcher\Event\Form\FormAlterEvent; use Drupal\core_event_dispatcher\FormHookEvents; -use Drupal\va_gov_header_footer\Traits\MenuFormAlter; +use Drupal\va_gov_header_footer\Traits\MenuFormAlterTrait; use Drupal\va_gov_user\Service\UserPermsService; use Symfony\Component\EventDispatcher\EventSubscriberInterface; @@ -13,7 +13,7 @@ */ class FormEventSubscriber implements EventSubscriberInterface { - use MenuFormAlter; + use MenuFormAlterTrait; /** * The VA user permission service. diff --git a/docroot/modules/custom/va_gov_header_footer/src/Traits/MenuFormAlter.php b/docroot/modules/custom/va_gov_header_footer/src/Traits/MenuFormAlterTrait.php similarity index 93% rename from docroot/modules/custom/va_gov_header_footer/src/Traits/MenuFormAlter.php rename to docroot/modules/custom/va_gov_header_footer/src/Traits/MenuFormAlterTrait.php index 2f27229e093..1805e05a817 100644 --- a/docroot/modules/custom/va_gov_header_footer/src/Traits/MenuFormAlter.php +++ b/docroot/modules/custom/va_gov_header_footer/src/Traits/MenuFormAlterTrait.php @@ -5,7 +5,7 @@ /** * Provides centralized menu form alter methods. */ -trait MenuFormAlter { +trait MenuFormAlterTrait { /** * Hides the description field on certain menu link forms.