You are here

class WeekDate in Drupal 10

Same name in this branch
  1. 10 core/modules/views/src/Plugin/views/argument/WeekDate.php \Drupal\views\Plugin\views\argument\WeekDate
  2. 10 core/modules/datetime/src/Plugin/views/argument/WeekDate.php \Drupal\datetime\Plugin\views\argument\WeekDate
Same name and namespace in other branches
  1. 8 core/modules/datetime/src/Plugin/views/argument/WeekDate.php \Drupal\datetime\Plugin\views\argument\WeekDate
  2. 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

Expanded class hierarchy of WeekDate

File

core/modules/datetime/src/Plugin/views/argument/WeekDate.php, line 10

Namespace

Drupal\datetime\Plugin\views\argument
View source
class WeekDate extends Date {

  /**
   * {@inheritdoc}
   */
  protected $argFormat = 'W';

}

Members

Namesort descending Modifiers Type Description Overrides
Date::$calculateOffset protected property Determines if the timezone offset is calculated.
Date::$dateFormatter protected property The date formatter service.
Date::$format protected property The date format used in the title. 4
Date::$option_name public property
Date::$routeMatch protected property The route match.
Date::create public static function Creates an instance of the plugin. Overrides ContainerFactoryPluginInterface::create
Date::defaultArgumentForm public function Add an option to set the default value to the current date.
Date::getDateField public function
Date::getDateFormat public function
Date::getDefaultArgument public function Set the empty argument value to the current date, formatted appropriately for this argument.
Date::getFormula public function Overrides Formula::getFormula
Date::getSortName public function
Date::__construct public function Constructs a new Date instance. Overrides Date::__construct
FieldAPIHandlerTrait::$entityFieldManager protected property The entity field manager.
FieldAPIHandlerTrait::$fieldDefinition protected property The field definition.
FieldAPIHandlerTrait::$fieldStorageDefinition protected property The field storage definition.
FieldAPIHandlerTrait::getEntityFieldManager protected function Returns the entity field manager.
FieldAPIHandlerTrait::getFieldDefinition protected function Gets the field definition.
FieldAPIHandlerTrait::getFieldStorageDefinition protected function Gets the field storage configuration.
Formula::$formula public property
Formula::init public function
Formula::query public function Build the query based upon the formula.
Formula::summaryQuery protected function Build the summary query based on a formula.
WeekDate::$argFormat protected property The date format used in the query. Overrides Date::$argFormat