function menu_ui_node_builder
Same name and namespace in other branches
- 11.x core/modules/menu_ui/menu_ui.module \menu_ui_node_builder()
- 10 core/modules/menu_ui/menu_ui.module \menu_ui_node_builder()
- 9 core/modules/menu_ui/menu_ui.module \menu_ui_node_builder()
- 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.