You are here

public function CalendarYearWeekDate::__construct in Calendar 8.2

Extends the Date instance with CalendarHelper.

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 $route_match: The route

\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter

\Drupal\Calendar\CalendarHelper $calendarHelper: Calendar helper service.

Overrides Date::__construct

File

src/Plugin/views/argument/CalendarYearWeekDate.php, line 48

Class

CalendarYearWeekDate
Argument handler for a day.

Namespace

Drupal\calendar\Plugin\views\argument

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, $route_match, $date_formatter, $calendarHelper) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $route_match, $date_formatter);
  $this->routeMatch = $route_match;
  $this->dateFormatter = $date_formatter;
  $this->calendarHelper = $calendarHelper;
}