You are here

function authcache_p13n_request_exists in Authenticated User Page Caching (Authcache) 7.2

Return true if the given route exists in the router.

Related topics

7 calls to authcache_p13n_request_exists()
AuthcacheP13nTestDefaultRequestRouter::testLookup in modules/authcache_p13n/tests/authcache_p13n.frontcontroller.test
Test whether the frontcontroller responds correctly to a valid request.
AuthcacheP13nTestDefaultRequestRouter::testRebuild in modules/authcache_p13n/tests/authcache_p13n.frontcontroller.test
Cover AuthcacheP13nDefaultRequestRouter::rebuild().
AuthcacheP13nTestDefaultRequestRouter::testRequestNotFound in modules/authcache_p13n/tests/authcache_p13n.frontcontroller.test
Should throw AuthcacheP13nRequestNotFound when route does not exist.
AuthcacheP13nTestRequestBuilder::testGetRequestCallback in modules/authcache_p13n/tests/authcache_p13n.request-builder.test
Cover authcache_p13n_request_exists().
authcache_p13n_admin_routes in modules/authcache_p13n/authcache_p13n.admin.inc
Display a list of available routes and frontcontroller settings.

... See full list

1 string reference to 'authcache_p13n_request_exists'
authcache_p13n_request_router_rebuild in modules/authcache_p13n/authcache_p13n.module
Rebuild the router of personalization request handlers.

File

modules/authcache_p13n/authcache_p13n.module, line 755
Provides methods for serving personalized content fragments.

Code

function authcache_p13n_request_exists($route_id) {
  $routes =& drupal_static(__FUNCTION__);
  if (!isset($routes)) {
    $router = authcache_p13n_request_get_router();
    $routes = drupal_map_assoc($router
      ->getRoutes());
  }
  return isset($routes[$route_id]);
}