update_page_top
function update_page_top
update_page_top()
Implements hook_page_top().
File
- core/modules/update/update.module, line 110
- Handles updates of Drupal core and contributed projects.
Code
function update_page_top() { /** @var \Drupal\Core\Routing\AdminContext $admin_context */ $admin_context = \Drupal::service('router.admin_context'); $route_match = \Drupal::routeMatch(); if ($admin_context->isAdminRoute($route_match->getRouteObject()) && \Drupal::currentUser()->hasPermission('administer site configuration')) { $route_name = \Drupal::routeMatch()->getRouteName();