function _esi_panels__display_uses_esi in ESI: Edge Side Includes 7.3
Check if any panes are configured to use ESI.
Parameters
object|panels_display $display: A panels_display object.
Return value
bool
2 calls to _esi_panels__display_uses_esi()
- esi_panels__panelizer_export_save_callback in modules/
esi_panels/ esi_panels.module - Save the configuration of a panelizer panel page.
- esi_panels__panel_context_save in modules/
esi_panels/ esi_panels.module - Save the configuration of a panel page.
File
- modules/
esi_panels/ esi_panels.module, line 376 - ESI handler for panel panes.
Code
function _esi_panels__display_uses_esi(panels_display $display) {
// Iterate each pane.
foreach ($display->content as $pid => $pane) {
// Any single pane implementing ESI is enough to return TRUE.
if (!empty($pane->cache) && $pane->cache['method'] == 'esi') {
return TRUE;
}
}
return FALSE;
}