You are here

public function LayoutManager::__construct in Layout 8.2

Constructs a new LayoutManager.

Parameters

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

Overrides DefaultPluginManager::__construct

File

lib/Drupal/layout/Plugin/Type/LayoutManager.php, line 28
Contains \Drupal\layout\Plugin\Type\LayoutManager.

Class

LayoutManager
Layout plugin manager.

Namespace

Drupal\layout\Plugin\Type

Code

public function __construct(\Traversable $namespaces) {
  parent::__construct('Plugin/Layout', $namespaces);

  // @todo Add alter and cache for definitions.

  //$this->alterInfo($module_handler, 'layout_info');

  //$this->setCacheBackend($cache_backend, $language_manager, 'layout_plugins');
}