You are here

function facets_summary_preprocess_facets_summary_item_list in Facets 8

Prepares variables for facets summary item list templates.

Default template: facets-summary-item-list.html.twig.

Parameters

array $variables: An associative array containing:

  • items: An array of items to be displayed in the list. Each item can be either a string or a render array. If #type, #theme, or #markup properties are not specified for child render arrays, they will be inherited from the parent list, allowing callers to specify larger nested lists without having to explicitly specify and repeat the render properties for all nested child lists.
  • title: A title to be prepended to the list.
  • list_type: The type of list to return (e.g. "ul", "ol").
  • wrapper_attributes: HTML attributes to be applied to the list wrapper.

See also

https://www.drupal.org/node/1842756

File

modules/facets_summary/facets_summary.module, line 98
Hook implementations for the facets summary module.

Code

function facets_summary_preprocess_facets_summary_item_list(array &$variables) {
  template_preprocess_item_list($variables);
}