5 * Helper module for the lazy route provider tests.
9 * Implements hook_menu_links_discovered_alter().
11 function lazy_route_provider_install_test_menu_links_discovered_alter(&$links) {
12 $message = \Drupal::state()->get(__FUNCTION__, 'success');
14 // Ensure that calling this does not cause a recursive rebuild.
15 \Drupal::service('router.route_provider')->getAllRoutes();
17 catch (\RuntimeException $e) {
20 \Drupal::state()->set(__FUNCTION__, $message);