function views_complex_grouping_theme in Views Complex Grouping 8
Same name and namespace in other branches
- 7 views_complex_grouping.module \views_complex_grouping_theme()
Implements hook_theme().
File
- ./
views_complex_grouping.module, line 13 - Adds theme function for custom template.
Code
function views_complex_grouping_theme($existing, $type, $theme, $path) {
\Drupal::moduleHandler()
->loadInclude('views_complex_grouping', 'inc', 'views_complex_grouping.theme');
return [
'views_view_complex_grouping_level' => [
'variables' => [
'view' => NULL,
'grouping' => NULL,
'grouping_level' => NULL,
'rows' => NULL,
'title' => NULL,
'fields' => NULL,
'grouping_branch' => NULL,
],
'file' => 'views_complex_grouping.theme.inc',
],
'views_view_complex_grouping_leave' => [
'variables' => [
'view' => NULL,
'grouping' => NULL,
'grouping_level' => NULL,
'rows' => NULL,
'title' => NULL,
'fields' => NULL,
'grouping_branch' => NULL,
],
],
];
}