function menu_link_content_entity_type_alter
Same name in other branches
- 9 core/modules/menu_link_content/menu_link_content.module \menu_link_content_entity_type_alter()
- 8.9.x 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
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', '');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.