Checks for access to route.
\Symfony\Component\Routing\Route $route: The route to check against.
\Symfony\Component\HttpFoundation\Request $request: The request object.
mixed TRUE if access is allowed. FALSE if not. NULL if no opinion.
Overrides AccessCheckInterface::access
public function access(Route $route, Request $request) {
if (user_access('administer menu') && ($menu_link = $request->attributes
->get('menu_link'))) {
// Links defined via hook_menu may not be deleted. Updated items are an
// exception, as they can be broken.
return $menu_link->module !== 'system' || $menu_link->updated;
}
return FALSE;
}