public function AuthcacheViewsDisplayPageContextProvider::get in Authenticated User Page Caching (Authcache) 7.2
Build and return context for the current request.
Parameters
array $input: The GET parameters in key-value form
Return value
any Context value
Overrides AuthcacheP13nContextProviderInterface::get
File
- modules/
authcache_views/ includes/ AuthcacheViewsDisplayPageContextProvider.inc, line 16 - Defines context provider collecting views argumnets from path.
Class
- AuthcacheViewsDisplayPageContextProvider
- Collect views arguments from current menu router item path.
Code
public function get($params) {
$router_item = menu_get_item();
$args = $router_item['page_arguments'];
// Remove $name and $display_id from the arguments.
array_shift($args);
array_shift($args);
return $args;
}