public function TestPluginBag::__construct

Constructs a TestPluginBag object.

Parameters

\Drupal\Component\Plugin\PluginManagerInterface $manager: The plugin manager that handles test plugins.

File

drupal/core/modules/system/tests/modules/plugin_test/lib/Drupal/plugin_test/Plugin/TestPluginBag.php, line 31
Contains \Drupal\plugin_test\Plugin\TestPluginBag.

Class

TestPluginBag
Defines a plugin bag which uses fruit plugins.

Namespace

Drupal\plugin_test\Plugin

Code

public function __construct(PluginManagerInterface $manager) {
  $this->manager = $manager;
  $this->instanceIDs = drupal_map_assoc(array_keys($this->manager
    ->getDefinitions()));
}