Issue #2186743 by aspilicious: Remove last instance of 'menu_rebuild_needed'.
parent
1d8820345b
commit
0110b8edcb
|
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue