1 date_views_argument_handler_simple.inc date_views_argument_handler_simple::title()

Provide a title for the view based on the argument value.

Overrides views_handler_argument::title

File

core/modules/date/views/date_views_argument_handler_simple.inc, line 274
Date API views argument handler.

Class

date_views_argument_handler_simple

Code

function title() {
  $format = !empty($this->options['title_format_custom']) && !empty($this->options['title_format_custom']) ? $this->options['title_format_custom'] : $this->date_handler->views_formats($this->options['granularity'], 'display');
  $range = $this->date_handler->arg_range($this->argument);
  return date_format_date($range[0], 'custom', $format);
}