Skip to content

Commit

Permalink
VACMS-14793: Move menu form alter trait to menus more centralized men…
Browse files Browse the repository at this point in the history
…us module
  • Loading branch information
chri5tia committed Sep 19, 2023
1 parent 5e77fe8 commit b30241b
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 2 deletions.
1 change: 1 addition & 0 deletions config/sync/core.extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ module:
va_gov_magichead: 0
va_gov_media: 0
va_gov_menu_access: 0
va_gov_menus: 0
va_gov_migrate: 0
va_gov_multilingual: 0
va_gov_multilingual_tmgmt: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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\MenuFormAlterTrait;
use Drupal\va_gov_menus\Traits\MenuFormAlterTrait;
use Drupal\va_gov_user\Service\UserPermsService;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Schema for the configuration files of the VA.gov Menus Helper module.
va_gov_menus.settings:
type: config_object
label: 'VA.gov Menus Helper settings'
mapping:
example:
type: string
label: 'Example'
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Drupal\va_gov_header_footer\Traits;
namespace Drupal\va_gov_menus\Traits;

/**
* Provides centralized menu form alter methods.
Expand Down
5 changes: 5 additions & 0 deletions docroot/modules/custom/va_gov_menus/va_gov_menus.info.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
name: VA.gov Menus Helper
type: module
description: Provides config and tools for menus on VA.gov
package: Custom
core_version_requirement: ^9 || ^10

0 comments on commit b30241b

Please sign in to comment.