You are here

function YearMonthDate::title in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/argument/YearMonthDate.php \Drupal\views\Plugin\views\argument\YearMonthDate::title()

Provide a link to the next level of the view

Overrides ArgumentPluginBase::title

File

core/modules/views/src/Plugin/views/argument/YearMonthDate.php, line 38
Contains \Drupal\views\Plugin\views\argument\YearMonthDate.

Class

YearMonthDate
Argument handler for a year plus month (CCYYMM)

Namespace

Drupal\views\Plugin\views\argument

Code

function title() {
  return format_date(strtotime($this->argument . "15" . " 00:00:00 UTC"), 'custom', $this->format, 'UTC');
}