You are here

public function ColorsSchemePluginCollection::__construct in Colors 8

Constructs a ColorsSchemePluginCollection object.

Parameters

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

Overrides DefaultLazyPluginCollection::__construct

File

src/Plugin/ColorsSchemePluginCollection.php, line 23

Class

ColorsSchemePluginCollection

Namespace

Drupal\colors\Plugin

Code

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

  // 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);
}