You are here

public function YearMonthDate::title in Drupal 10

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()
  2. 9 core/modules/views/src/Plugin/views/argument/YearMonthDate.php \Drupal\views\Plugin\views\argument\YearMonthDate::title()

File

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

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');
}