DatabaseStorageController::postSave().
Overrides DatabaseStorageController::postSave
function postSave(EntityInterface $entity, $update) {
// Check the has_children status of the parent.
$this
->updateParentalStatus($entity);
menu_cache_clear($entity->menu_name);
if (isset($entity->original) && $entity->menu_name != $entity->original->menu_name) {
menu_cache_clear($entity->original->menu_name);
}
// Now clear the cache.
_menu_clear_page_cache();
}