_menu_ui_node_save(NodeInterface $node, array $values)
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.
File
core/modules/menu_ui/menu_ui.module, line 137 Allows administrators to customize the site's navigation menus.
Code
function _menu_ui_node_save(NodeInterface $node, array $values) {
/** @var \Drupal\menu_link_content\MenuLinkContentInterface $entity */
if (!empty($values['e