You are here

public function FullDate::title in Drupal 8

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

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

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

Class

FullDate
Argument handler for a full date (CCYYMMDD)

Namespace

Drupal\views\Plugin\views\argument

Code

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