function menu_ui_menu_update

menu_ui_menu_update(Menu $menu)

Implements hook_ENTITY_TYPE_update() for menu entities.

File

core/modules/menu_ui/menu_ui.module, line 87
Allows administrators to customize the site's navigation menus.

Code

function menu_ui_menu_update(Menu $menu) {
  menu_cache_clear_all();
  // Invalidate the block cache to update menu-based derivatives.
  if (\Drupal::moduleHandler()->moduleExists('block')) {
    \Drupal::service('plugin.manager.block')->clearCachedDefinitions();
  }
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!menu_ui!menu_ui.module/function/menu_ui_menu_update/8.1.x