public function ActionManager::__construct

Constructs a ActionManager object.

Parameters

\Traversable $namespaces: An object that implements \Traversable which contains the root paths keyed by the corresponding namespace to look for plugin implementations.

File

drupal/core/lib/Drupal/Core/Action/ActionManager.php, line 30
Contains \Drupal\Core\Action\ActionManager.

Class

ActionManager
Provides an Action plugin manager.

Namespace

Drupal\Core\Action

Code

public function __construct(\Traversable $namespaces) {
  $this->discovery = new AnnotatedClassDiscovery('Action', $namespaces, array(), 'Drupal\\Core\\Annotation\\Action');
  $this->discovery = new AlterDecorator($this->discovery, 'action_info');
  $this->factory = new ContainerFactory($this);
}