You are here

protected function TimelineJS::buildGroup in Views TimelineJS integration 8.3

Builds a timeline group from the current data row.

Return value

string The group name.

1 call to TimelineJS::buildGroup()
TimelineJS::buildSlide in src/Plugin/views/style/TimelineJS.php
Builds a timeline slide from the current views data row.

File

src/Plugin/views/style/TimelineJS.php, line 590

Class

TimelineJS
Style plugin to render items as TimelineJS3 slides.

Namespace

Drupal\views_timelinejs\Plugin\views\style

Code

protected function buildGroup() {
  $group = '';
  if ($this->options['timeline_fields']['group']) {
    $group_markup = $this
      ->getField($this->view->row_index, $this->options['timeline_fields']['group']);
    $group = $group_markup ? $group_markup
      ->__toString() : '';
  }
  return $group;
}