Newer
Older
Angie Byron
committed
* Contains \Drupal\views\Plugin\views\argument\FullDate.
Angie Byron
committed
namespace Drupal\views\Plugin\views\argument;
/**
* Argument handler for a full date (CCYYMMDD)
* @PluginID("date_fulldate")
Angie Byron
committed
class FullDate extends Date {
/**
* {@inheritdoc}
*/
protected $format = 'F j, Y';
/**
* {@inheritdoc}
*/
protected $argFormat = 'Ymd';
/**
* Provide a link to the next level of the view
*/
Alex Pott
committed
public function summaryName($data) {
$created = $data->{$this->name_alias};
return format_date(strtotime($created . " 00:00:00 UTC"), 'custom', $this->format, 'UTC');
}
/**
* Provide a link to the next level of the view
*/
function title() {
return format_date(strtotime($this->argument . " 00:00:00 UTC"), 'custom', $this->format, 'UTC');