function YearMonthDate::title

Same name in other branches
  1. 9 core/modules/views/src/Plugin/views/argument/YearMonthDate.php \Drupal\views\Plugin\views\argument\YearMonthDate::title()
  2. 8.9.x core/modules/views/src/Plugin/views/argument/YearMonthDate.php \Drupal\views\Plugin\views\argument\YearMonthDate::title()
  3. 10 core/modules/views/src/Plugin/views/argument/YearMonthDate.php \Drupal\views\Plugin\views\argument\YearMonthDate::title()

Overrides ArgumentPluginBase::title

File

core/modules/views/src/Plugin/views/argument/YearMonthDate.php, line 36

Class

YearMonthDate
Argument handler for a year plus month (CCYYMM)

Namespace

Drupal\views\Plugin\views\argument

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.