function esi__panels_get_task_context in ESI: Edge Side Includes 6.2
Each of the panel task plugins provides a default context based on the menu path. This function looks up the menu handler for a URL, and provides the contexts for the menu-handler.
1 call to esi__panels_get_task_context()
- esi__panel_pane_handler in ./
esi.module - Menu handler to serve individual panel-panes via ESI.
File
- ./
esi.module, line 628 - Adds support for ESI (Edge-Side-Include) integration, allowing blocks to be\ delivered by ESI, with support for per-block cache times.
Code
function esi__panels_get_task_context($task_name) {
$task = page_manager_get_task($task_name);
// Invoke the module's hook_esi_get_context_arguments to get the context
// provided by that task.
$context_arguments = module_invoke($task['module'], 'esi_get_context_arguments', $task['name']);
// Parse the arguments into context objects.
ctools_include('context');
ctools_include('context-task-handler');
$contexts = ctools_context_handler_get_task_contexts($task, '', $context_arguments);
return array(
$context_arguments,
$contexts,
);
}