function NodeDateArgumentDefaultPluginBase::__construct

Constructs a new NodeDateArgumentDefaultPluginBase instance.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\Routing\RouteMatchInterface $routeMatch: The route match.

\Drupal\Core\Datetime\DateFormatterInterface $dateFormatter: The date formatter service.

Overrides PluginBase::__construct

File

core/modules/node/src/Plugin/views/argument_default/NodeDateArgumentDefaultPluginBase.php, line 33

Class

NodeDateArgumentDefaultPluginBase
Provides a base class for node date values.

Namespace

Drupal\node\Plugin\views\argument_default

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, protected RouteMatchInterface $routeMatch, protected DateFormatterInterface $dateFormatter) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.