public function YearMonthDate::summaryName in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views/src/Plugin/views/argument/YearMonthDate.php \Drupal\views\Plugin\views\argument\YearMonthDate::summaryName()
Provide a link to the next level of the view
Overrides ArgumentPluginBase::summaryName
File
- core/
modules/ views/ src/ Plugin/ views/ argument/ YearMonthDate.php, line 30 - Contains \Drupal\views\Plugin\views\argument\YearMonthDate.
Class
- YearMonthDate
- Argument handler for a year plus month (CCYYMM)
Namespace
Drupal\views\Plugin\views\argumentCode
public function summaryName($data) {
$created = $data->{$this->name_alias};
return format_date(strtotime($created . "15" . " 00:00:00 UTC"), 'custom', $this->format, 'UTC');
}