Skip to content
Snippets Groups Projects
Commit 0110b8ed authored by Angie Byron's avatar Angie Byron
Browse files

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

parent 1d882034
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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();
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment