function FullDate::summaryName
Same name in other branches
- 9 core/modules/views/src/Plugin/views/argument/FullDate.php \Drupal\views\Plugin\views\argument\FullDate::summaryName()
- 8.9.x core/modules/views/src/Plugin/views/argument/FullDate.php \Drupal\views\Plugin\views\argument\FullDate::summaryName()
- 11.x core/modules/views/src/Plugin/views/argument/FullDate.php \Drupal\views\Plugin\views\argument\FullDate::summaryName()
Overrides ArgumentPluginBase::summaryName
File
-
core/
modules/ views/ src/ Plugin/ views/ argument/ FullDate.php, line 28
Class
- FullDate
- Argument handler for a full date (CCYYMMDD)
Namespace
Drupal\views\Plugin\views\argumentCode
public function summaryName($data) {
$created = $data->{$this->name_alias};
return $this->dateFormatter
->format(strtotime($created . " 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.