function facets_summary_theme in Facets 8
Implements hook_theme().
File
- modules/
facets_summary/ facets_summary.module, line 11 - Hook implementations for the facets summary module.
Code
function facets_summary_theme($existing, $type, $theme, $path) {
return [
'facets_summary_count' => [
'variables' => [
'count' => NULL,
],
],
'facets_summary_facet' => [
'render element' => 'elements',
'variables' => [
'label' => NULL,
'separator' => '',
'items' => [],
'facet_id' => NULL,
'facet_admin_label' => NULL,
],
],
'facets_summary_facet_result' => [
'variables' => [
'label' => NULL,
'show_count' => FALSE,
'count' => NULL,
'facet_id' => NULL,
],
],
'facets_summary_empty' => [
'variables' => [
'message' => '',
],
],
'facets_summary_item_list' => [
'variables' => [
'items' => [],
'title' => '',
'list_type' => 'ul',
'wrapper_attributes' => [],
'attributes' => [],
'empty' => NULL,
'context' => [],
'facet_summary_id' => NULL,
],
],
];
}