function MenuLinkContentHooks::entityTypeAlter

Implements hook_entity_type_alter().

File

core/modules/menu_link_content/src/Hook/MenuLinkContentHooks.php, line 50

Class

MenuLinkContentHooks
Hook implementations for menu_link_content.

Namespace

Drupal\menu_link_content\Hook

Code

public function entityTypeAlter(array &$entity_types) : void {
    // @todo Moderation is disabled for custom menu links until when we have an UI
    //   for them.
    //   @see https://www.drupal.org/project/drupal/issues/2350939
    $entity_types['menu_link_content']->setHandlerClass('moderation', '');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.