Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 292216

_menu_navigation_links_rebuild fails when menu_link module is not enabled.

$
0
0

If the menu_link module is not enabled, the following code is run:

<?php
   
// The Menu link module is not available at install time, so we need to
    // hardcode the default storage controller.
   
$menu_link_controller = new MenuLinkStorageController('menu_link', Drupal::service('database'), Drupal::service('router.route_provider'));
?>

but the signature of the constructor has the entity_info as second parameter.
You can't get this information from Drupal::entityManager()->getDefinition('menu_link'), so you might have to copy it from MenuLink.php in the menu_link module.

Viewing all articles
Browse latest Browse all 292216

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>