You are here

function menu_ui_node_builder in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/menu_ui/menu_ui.module \menu_ui_node_builder()

Entity form builder to add the menu information to the node.

1 string reference to 'menu_ui_node_builder'
menu_ui_form_node_form_alter in core/modules/menu_ui/menu_ui.module
Implements hook_form_BASE_FORM_ID_alter() for \Drupal\node\NodeForm.

File

core/modules/menu_ui/menu_ui.module, line 319
Allows administrators to customize the site's navigation menus.

Code

function menu_ui_node_builder($entity_type, NodeInterface $entity, &$form, FormStateInterface $form_state) {
  $entity->menu = $form_state
    ->getValue('menu');
}