You are here

function hook_esi_rendered_component_alter in ESI: Edge Side Includes 7.3

Alter the rendered ESI component.

Parameters

Array $esi_rendered_component: An ESI component, delivered as a renderable array.

1 invocation of hook_esi_rendered_component_alter()
esi_deliver_esi_component in ./esi.pages.inc
Minimal delivery for an ESI component. Replaces drupal_deliver_html_page().

File

./esi.api.inc, line 40
API documentation for hooks defined by the ESI module.

Code

function hook_esi_rendered_component_alter(&$esi_rendered_component) {
  $key = key($esi_rendered_component);

  // Add another theme wrapper.
  $esi_rendered_component[$key]['#theme_wrappers'][] = 'custom_rounded_corners';
}