You are here

protected function FullcalendarPluginCollection::initializePlugin in FullCalendar 8

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

Initializes and stores a plugin.

Parameters

string $instance_id: The ID of the plugin instance to initialize.

Overrides DefaultLazyPluginCollection::initializePlugin

File

src/Plugin/FullcalendarPluginCollection.php, line 50

Class

FullcalendarPluginCollection
@todo.

Namespace

Drupal\fullcalendar\Plugin

Code

protected function initializePlugin($plugin_id) {
  if (isset($this->pluginInstances[$plugin_id])) {
    return;
  }
  $this->pluginInstances[$plugin_id] = $this->manager
    ->createInstance($plugin_id, [], $this->style);
}