You are here

protected function AuthcacheP13nDefaultRequestHandler::getContext in Authenticated User Page Caching (Authcache) 7.2

Collect context.

Return value

array An array of key-value pairs gathered from the registered context providers.

1 call to AuthcacheP13nDefaultRequestHandler::getContext()
AuthcacheP13nDefaultRequestHandler::handle in modules/authcache_p13n/includes/AuthcacheP13nDefaultRequestHandler.inc
Render and print the response according to the given parameters.

File

modules/authcache_p13n/includes/AuthcacheP13nDefaultRequestHandler.inc, line 115
Defines default request handler class

Class

AuthcacheP13nDefaultRequestHandler
Default request handler class for personalized fragments.

Code

protected function getContext($params) {
  $context = array();
  if (!empty($this->contextProviders)) {
    foreach ($this->contextProviders as $target => $context_provider) {
      $context[$target] = $context_provider
        ->get($params);
    }
  }
  return $context;
}