Upgraded drupal core with security updates
[yaffs-website] / web / core / modules / views / src / Plugin / views / argument / WeekDate.php
1 <?php
2
3 namespace Drupal\views\Plugin\views\argument;
4
5 /**
6  * Argument handler for a week.
7  *
8  * @ViewsArgument("date_week")
9  */
10 class WeekDate extends Date {
11
12   /**
13    * {@inheritdoc}
14    */
15   protected $argFormat = 'W';
16
17   /**
18    * Provide a link to the next level of the view
19    */
20   public function summaryName($data) {
21     $created = $data->{$this->name_alias};
22     return $this->t('Week @week', ['@week' => $created]);
23   }
24
25 }