function menu_ui_node_builder

Same name in other branches
  1. 9 core/modules/menu_ui/menu_ui.module \menu_ui_node_builder()
  2. 8.9.x core/modules/menu_ui/menu_ui.module \menu_ui_node_builder()
  3. 10 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 318

Code

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

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