protected function views_timelinejs_plugin_style_timelinejs::build_display_date in Views TimelineJS integration 7.3
Builds a timeline display date from the current data row.
Return value
string A string which contains the text to be displayed instead of the start and end dates of a slide.
1 call to views_timelinejs_plugin_style_timelinejs::build_display_date()
- 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 491
Class
- views_timelinejs_plugin_style_timelinejs
- Style plugin to render items as TimelineJS3 slides.
Code
protected function build_display_date() {
$display_date = '';
if ($this->options['timeline_fields']['display_date']) {
$display_date = $this
->get_field($this->view->row_index, $this->options['timeline_fields']['display_date']);
}
return $display_date;
}