You are here

function theme_views_view_grouping in Views (for Drupal 7) 8.3

Same name and namespace in other branches
  1. 7.3 theme/theme.inc \theme_views_view_grouping()

Display a single views grouping.

1 theme call to theme_views_view_grouping()
StylePluginBase::render_grouping_sets in lib/Drupal/views/Plugin/views/style/StylePluginBase.php
Render the grouping sets.

File

theme/theme.inc, line 308
Preprocessors and helper functions to make theming easier.

Code

function theme_views_view_grouping($vars) {
  $view = $vars['view'];
  $title = $vars['title'];
  $content = $vars['content'];
  $output = '<div class="view-grouping">';
  $output .= '<div class="view-grouping-header">' . $title . '</div>';
  $output .= '<div class="view-grouping-content">' . $content . '</div>';
  $output .= '</div>';
  return $output;
}