public function YearMonthDate::summaryName

Provide a link to the next level of the view

Overrides ArgumentPluginBase::summaryName

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/argument/YearMonthDate.php, line 32
Contains \Drupal\views\Plugin\views\argument\YearMonthDate.

Class

YearMonthDate
Argument handler for a year plus month (CCYYMM)

Namespace

Drupal\views\Plugin\views\argument

Code

public function summaryName($data) {
  $created = $data->{$this->name_alias};
  return format_date(strtotime($created . "15" . " 00:00:00 UTC"), 'custom', $this->format, 'UTC');
}