FullDate.php in Zircon Profile 8
File
core/modules/views/src/Plugin/views/argument/FullDate.php
View source
<?php
namespace Drupal\views\Plugin\views\argument;
class FullDate extends Date {
protected $format = 'F j, Y';
protected $argFormat = 'Ymd';
public function summaryName($data) {
$created = $data->{$this->name_alias};
return format_date(strtotime($created . " 00:00:00 UTC"), 'custom', $this->format, 'UTC');
}
function title() {
return format_date(strtotime($this->argument . " 00:00:00 UTC"), 'custom', $this->format, 'UTC');
}
}
Classes
Name |
Description |
FullDate |
Argument handler for a full date (CCYYMMDD) |