function menu_ui_node_builder

Same name and namespace in other branches
  1. 11.x core/modules/menu_ui/menu_ui.module \menu_ui_node_builder()
  2. 10 core/modules/menu_ui/menu_ui.module \menu_ui_node_builder()
  3. 9 core/modules/menu_ui/menu_ui.module \menu_ui_node_builder()
  4. 8.9.x core/modules/menu_ui/menu_ui.module \menu_ui_node_builder()

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

Deprecated

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal\menu_ui\Hooks\MenuUiHooks::nodeBuilder() instead.

See also

https://www.drupal.org/node/3566774

File

core/modules/menu_ui/menu_ui.module, line 58

Code

function menu_ui_node_builder($entity_type, NodeInterface $entity, &$form, FormStateInterface $form_state) : void {
  @trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.4.0 and is removed from drupal:13.0.0. Use MenuUiHooks::nodeBuilder() instead. See https://www.drupal.org/node/3566774', E_USER_DEPRECATED);
  \Drupal::service(MenuUiHooks::class)->nodeBuilder($entity_type, $entity, $form, $form_state);
}

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