You are here

function admin_toolbar_update_8001 in Admin Toolbar 8

Same name and namespace in other branches
  1. 8.2 admin_toolbar.install \admin_toolbar_update_8001()
  2. 3.x admin_toolbar.install \admin_toolbar_update_8001()

Rebuild routes to mitigate issue 2938884.

See also

https://www.drupal.org/project/admin_toolbar/issues/2938884

File

./admin_toolbar.install, line 13
Install, update and uninstall functions for the Admin Toolbar module.

Code

function admin_toolbar_update_8001() {

  // Rebuilding the route cache.
  \Drupal::service("router.builder")
    ->rebuild();
}