Commit 0110b8ed authored by webchick's avatar webchick
Browse files

Issue #2186743 by aspilicious: Remove last instance of 'menu_rebuild_needed'.

parent 1d882034
......@@ -199,7 +199,7 @@ function hook_entity_bundle_info_alter(&$bundles) {
function hook_entity_bundle_create($entity_type, $bundle) {
// When a new bundle is created, the menu needs to be rebuilt to add the
// Field UI menu item tabs.
\Drupal::state()->set('menu_rebuild_needed', TRUE);
\Drupal::service('router.builder')->setRebuildNeeded();
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment