You are here

public function FullcalendarPluginCollection::__construct in FullCalendar 8.3

Same name and namespace in other branches
  1. 8.5 src/Plugin/FullcalendarPluginCollection.php \Drupal\fullcalendar\Plugin\FullcalendarPluginCollection::__construct()
  2. 8 src/Plugin/FullcalendarPluginCollection.php \Drupal\fullcalendar\Plugin\FullcalendarPluginCollection::__construct()
  3. 8.2 src/Plugin/FullcalendarPluginCollection.php \Drupal\fullcalendar\Plugin\FullcalendarPluginCollection::__construct()
  4. 8.4 src/Plugin/FullcalendarPluginCollection.php \Drupal\fullcalendar\Plugin\FullcalendarPluginCollection::__construct()

Constructs a FullcalendarPluginCollection object.

Parameters

\Drupal\Component\Plugin\PluginManagerInterface $manager: The manager to be used for instantiating plugins.

\Drupal\views\Plugin\views\style\StylePluginBase $style: The style plugin that contains these plugins.

Overrides DefaultLazyPluginCollection::__construct

File

src/Plugin/FullcalendarPluginCollection.php, line 36

Class

FullcalendarPluginCollection
@todo.

Namespace

Drupal\fullcalendar\Plugin

Code

public function __construct(PluginManagerInterface $manager, StylePluginBase $style) {
  $this->manager = $manager;
  $this->style = $style;

  // Store all display IDs to access them easy and fast.
  $instance_ids = array_keys($this->manager
    ->getDefinitions());
  $this->instanceIDs = array_combine($instance_ids, $instance_ids);
  parent::__construct($manager, $this->instanceIDs);
}