You are here

public function MonthDate::title in Views XML Backend 8

Get the title this argument will assign the view, given the argument.

This usually needs to be overridden to provide a proper title.

Overrides ArgumentPluginBase::title

File

src/Plugin/views/argument/MonthDate.php, line 40
Contains \Drupal\views_xml_backend\Plugin\views\argument\MonthDate.

Class

MonthDate
Argument handler for a month (MM).

Namespace

Drupal\views_xml_backend\Plugin\views\argument

Code

public function title() {
  $month = str_pad($this->argument, 2, '0', STR_PAD_LEFT);
  return format_date(strtotime("2005" . $month . "15" . " 00:00:00 UTC"), 'custom', $this->format, 'UTC');
}