function _menu_ui_node_save
Same name and namespace in other branches
- 10 core/modules/menu_ui/menu_ui.module \_menu_ui_node_save()
- 9 core/modules/menu_ui/menu_ui.module \_menu_ui_node_save()
- 8.9.x core/modules/menu_ui/menu_ui.module \_menu_ui_node_save()
- main core/modules/menu_ui/menu_ui.module \_menu_ui_node_save()
Helper function to create or update a menu link for a node.
Parameters
\Drupal\node\NodeInterface $node: Node entity.
array $values: Values for the menu link.
Deprecated
in drupal:11.4.0 and is removed from drupal:12.0.0. Use \Drupal\menu_ui\MenuUiUtility::menuUiNodeSave() instead.
See also
https://www.drupal.org/node/3566774
File
-
core/
modules/ menu_ui/ menu_ui.module, line 26
Code
function _menu_ui_node_save(NodeInterface $node, array $values) : void {
@trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.4.0 and is removed from drupal:12.0.0. Use MenuUiUtility::menuUiNodeSave() instead. See https://www.drupal.org/node/3566774', E_USER_DEPRECATED);
\Drupal::service(MenuUiUtility::class)->menuUiNodeSave($node, $values);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.