You are here

public static function MenuHierarchySubscriber::getSubscribedEvents in YAML Content 8

File

src/EventSubscriber/MenuHierarchySubscriber.php, line 24

Class

MenuHierarchySubscriber
An event subscriber to correct link parent reference formatting.

Namespace

Drupal\yaml_content\EventSubscriber

Code

public static function getSubscribedEvents() {
  $events[YamlContentEvents::ENTITY_PRE_SAVE][] = [
    'serializeMenuParent',
  ];
  return $events;
}