You are here

function menu_link_content_entity_type_alter in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/menu_link_content/menu_link_content.module \menu_link_content_entity_type_alter()
  2. 9 core/modules/menu_link_content/menu_link_content.module \menu_link_content_entity_type_alter()

Implements hook_entity_type_alter().

File

core/modules/menu_link_content/menu_link_content.module, line 37
Allows administrators to create custom menu links.

Code

function menu_link_content_entity_type_alter(array &$entity_types) {

  // @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', '');
}