WeekDate.php
Same filename in this branch
Same filename in other branches
- 8.9.x core/modules/views/src/Plugin/views/argument/WeekDate.php
- 8.9.x core/modules/datetime/src/Plugin/views/argument/WeekDate.php
- 10 core/modules/views/src/Plugin/views/argument/WeekDate.php
- 10 core/modules/datetime/src/Plugin/views/argument/WeekDate.php
- 11.x core/modules/views/src/Plugin/views/argument/WeekDate.php
- 11.x core/modules/datetime/src/Plugin/views/argument/WeekDate.php
Namespace
Drupal\views\Plugin\views\argumentFile
-
core/
modules/ views/ src/ Plugin/ views/ argument/ WeekDate.php
View source
<?php
namespace Drupal\views\Plugin\views\argument;
/**
* Argument handler for a week.
*
* @ViewsArgument("date_week")
*/
class WeekDate extends Date {
/**
* {@inheritdoc}
*/
protected $argFormat = 'W';
/**
* Provide a link to the next level of the view.
*/
public function summaryName($data) {
$created = $data->{$this->name_alias};
return $this->t('Week @week', [
'@week' => $created,
]);
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
WeekDate | Argument handler for a week. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.