You are here

public static function CalendarYearMonthDate::create in Calendar 8.2

Create function for Date query

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container: The service container.

array $configuration: The configuration.

string $plugin_id: The plugin.

mixed $plugin_definition: The plugin implementation definition.

RouteMatchInterface $route_match: The plugin.

DateFormatterInterface $date_formatter: The plugin implementation definition.

Return value

static

Overrides Date::create

File

src/Plugin/views/argument/CalendarYearMonthDate.php, line 82

Class

CalendarYearMonthDate
Argument handler for a day.

Namespace

Drupal\calendar\Plugin\views\argument

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
  return new static($configuration, $plugin_id, $plugin_definition, $container
    ->get('current_route_match'), $container
    ->get('date.formatter'), $container
    ->get('calendar.helper'));
}