You are here

public static function Calendar::create in Calendar 8.2

Same name and namespace in other branches
  1. 8 src/Plugin/views/style/Calendar.php \Drupal\calendar\Plugin\views\style\Calendar::create()

Create function for Calendar object.

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. // * @param \Drupal\Core\Session\AccountInterface $account // * The account interface. // * @param \Drupal\Calendar\CalendarStyleInfo $styleInfo // * Calendar style info service. // * @param \Drupal\Calendar\CalendarHelper $calendarHelper // * The CalendarHelper class.

Return value

static

Overrides PluginBase::create

File

src/Plugin/views/style/Calendar.php, line 144

Class

Calendar
Views style plugin for the Calendar module.

Namespace

Drupal\calendar\Plugin\views\style

Code

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