You are here

public function FullDate::summaryName in Drupal 9

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

Provides the name to use for the summary. By default this is just the name field.

Parameters

$data: The query results for the row.

Overrides ArgumentPluginBase::summaryName

File

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

Class

FullDate
Argument handler for a full date (CCYYMMDD)

Namespace

Drupal\views\Plugin\views\argument

Code

public function summaryName($data) {
  $created = $data->{$this->name_alias};
  return $this->dateFormatter
    ->format(strtotime($created . " 00:00:00 UTC"), 'custom', $this->format, 'UTC');
}