You are here

protected function views_timelinejs_plugin_style_timelinejs::build_group in Views TimelineJS integration 7.3

Builds a timeline group from the current data row.

Return value

string The group name.

1 call to views_timelinejs_plugin_style_timelinejs::build_group()
views_timelinejs_plugin_style_timelinejs::build_slide in ./views_timelinejs_plugin_style_timelinejs.inc
Builds a timeline slide from the current views data row.

File

./views_timelinejs_plugin_style_timelinejs.inc, line 524

Class

views_timelinejs_plugin_style_timelinejs
Style plugin to render items as TimelineJS3 slides.

Code

protected function build_group() {
  $group = '';
  if ($this->options['timeline_fields']['group']) {
    $group = $this
      ->get_field($this->view->row_index, $this->options['timeline_fields']['group']);
  }
  return $group;
}