You are here

public function VisualizationHandlerManager::__construct in Visualization API 8

Constructs a ViewsHandlerManager object.

Parameters

string $type: The plugin type, for example filter.

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

File

src/Plugin/VisualizationHandlerManager.php, line 29
Definition of Drupal\visualization\Plugin\VisualizationHandlerManager

Class

VisualizationHandlerManager
Plugin type manager for all views handlers.

Namespace

Drupal\visualization\Plugin

Code

public function __construct($type, \Traversable $namespaces) {
  $this->discovery = new AnnotatedClassDiscovery("Plugin/visualization/{$type}", $namespaces);
  $this->discovery = new DerivativeDiscoveryDecorator($this->discovery);
  $this->factory = new DefaultFactory($this->discovery);
}