public function ExpirePanels::getPanelHandler in Panels Cache Expiration 7
Returns panel handler for display.
Parameters
object $display: Panel display.
Return value
object|null Panel handler.
1 call to ExpirePanels::getPanelHandler()
- ExpirePanels::getPanelPage in includes/
expire.panels.inc - Returns panel page for display.
File
- includes/
expire.panels.inc, line 105 - Provides class that expires panels.
Class
- ExpirePanels
- @file Provides class that expires panels.
Code
public function getPanelHandler($display) {
ctools_include('export');
$handlers = ctools_export_load_object('page_manager_handlers');
$panel_handler = NULL;
// Find panel handler by did property.
foreach ($handlers as $handler) {
if (empty($panel_handler) && !empty($handler->conf['did']) && $handler->conf['did'] == $display->did) {
$panel_handler = $handler;
}
}
return $panel_handler;
}