class WeekDate in Drupal 10
Same name in this branch
- 10 core/modules/views/src/Plugin/views/argument/WeekDate.php \Drupal\views\Plugin\views\argument\WeekDate
- 10 core/modules/datetime/src/Plugin/views/argument/WeekDate.php \Drupal\datetime\Plugin\views\argument\WeekDate
Same name and namespace in other branches
- 8 core/modules/datetime/src/Plugin/views/argument/WeekDate.php \Drupal\datetime\Plugin\views\argument\WeekDate
- 9 core/modules/datetime/src/Plugin/views/argument/WeekDate.php \Drupal\datetime\Plugin\views\argument\WeekDate
Argument handler for a week.
Plugin annotation
@ViewsArgument("datetime_week");
Hierarchy
- class \Drupal\views\Plugin\views\argument\Formula extends \Drupal\views\Plugin\views\argument\ArgumentPluginBase
- class \Drupal\views\Plugin\views\argument\Date implements ContainerFactoryPluginInterface
- class \Drupal\datetime\Plugin\views\argument\Date uses FieldAPIHandlerTrait
- class \Drupal\datetime\Plugin\views\argument\WeekDate
- class \Drupal\datetime\Plugin\views\argument\Date uses FieldAPIHandlerTrait
- class \Drupal\views\Plugin\views\argument\Date implements ContainerFactoryPluginInterface
Expanded class hierarchy of WeekDate
File
- core/
modules/ datetime/ src/ Plugin/ views/ argument/ WeekDate.php, line 10
Namespace
Drupal\datetime\Plugin\views\argumentView source
class WeekDate extends Date {
/**
* {@inheritdoc}
*/
protected $argFormat = 'W';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Date:: |
protected | property | Determines if the timezone offset is calculated. | |
Date:: |
protected | property | The date formatter service. | |
Date:: |
protected | property | The date format used in the title. | 4 |
Date:: |
public | property | ||
Date:: |
protected | property | The route match. | |
Date:: |
public static | function |
Creates an instance of the plugin. Overrides ContainerFactoryPluginInterface:: |
|
Date:: |
public | function | Add an option to set the default value to the current date. | |
Date:: |
public | function | ||
Date:: |
public | function | ||
Date:: |
public | function | Set the empty argument value to the current date, formatted appropriately for this argument. | |
Date:: |
public | function |
Overrides Formula:: |
|
Date:: |
public | function | ||
Date:: |
public | function |
Constructs a new Date instance. Overrides Date:: |
|
FieldAPIHandlerTrait:: |
protected | property | The entity field manager. | |
FieldAPIHandlerTrait:: |
protected | property | The field definition. | |
FieldAPIHandlerTrait:: |
protected | property | The field storage definition. | |
FieldAPIHandlerTrait:: |
protected | function | Returns the entity field manager. | |
FieldAPIHandlerTrait:: |
protected | function | Gets the field definition. | |
FieldAPIHandlerTrait:: |
protected | function | Gets the field storage configuration. | |
Formula:: |
public | property | ||
Formula:: |
public | function | ||
Formula:: |
public | function | Build the query based upon the formula. | |
Formula:: |
protected | function | Build the summary query based on a formula. | |
WeekDate:: |
protected | property |
The date format used in the query. Overrides Date:: |