public function Date::__construct in Calendar 8
Constructs a new Date 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\Datetime\DateFormatterInterface $date_formatter: The date formatter service.
\Symfony\Component\HttpFoundation\Request $request: The current request.
Overrides PluginBase::__construct
File
- calendar_datetime/
src/ Plugin/ views/ argument_default/ Date.php, line 51
Class
- Date
- The current date argument default handler.
Namespace
Drupal\calendar_datetime\Plugin\views\argument_defaultCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, DateFormatterInterface $date_formatter, Request $request) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->dateFormatter = $date_formatter;
$this->request = $request;
}