public function ViewsHandlerManager::__construct

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

drupal/core/modules/views/lib/Drupal/views/Plugin/ViewsHandlerManager.php, line 29
Contains \Drupal\views\Plugin\ViewsHandlerManager.

Class

ViewsHandlerManager
Plugin type manager for all views handlers.

Namespace

Drupal\views\Plugin

Code

public function __construct($type, \Traversable $namespaces) {
  $this->discovery = new ViewsHandlerDiscovery($type, $namespaces);
  $this->discovery = new CacheDecorator($this->discovery, "views:{$type}", 'views_info');
  $this->factory = new ContainerFactory($this);
}