3 namespace Drupal\views\Plugin\views\argument;
6 * Argument handler for a year plus month (CCYYMM)
8 * @ViewsArgument("date_year_month")
10 class YearMonthDate extends Date {
15 protected $format = 'F Y';
20 protected $argFormat = 'Ym';
23 * Provide a link to the next level of the view
25 public function summaryName($data) {
26 $created = $data->{$this->name_alias};
27 return format_date(strtotime($created . "15" . " 00:00:00 UTC"), 'custom', $this->format, 'UTC');
31 * Provide a link to the next level of the view
33 public function title() {
34 return format_date(strtotime($this->argument . "15" . " 00:00:00 UTC"), 'custom', $this->format, 'UTC');