You are here

public function BootstrapLayoutsManager::__construct in Bootstrap Layouts 8.4

Same name and namespace in other branches
  1. 8.5 src/BootstrapLayoutsManager.php \Drupal\bootstrap_layouts\BootstrapLayoutsManager::__construct()

Constructs a new \Drupal\bootstrap_layouts\BootstrapLayoutsManager object.

Parameters

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

\Drupal\Core\Cache\CacheBackendInterface $cache_backend: Cache backend instance to use.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler to invoke the alter hook with.

\Drupal\Core\Extension\ThemeHandlerInterface $theme_handler: The theme manager used to invoke the alter hook with.

\Drupal\Core\Theme\ThemeManagerInterface $theme_manager: The theme manager used to invoke the alter hook with.

\Drupal\layout_plugin\Plugin\Layout\LayoutPluginManager $layout_manager: The Layout Manager.

\Drupal\bootstrap_layouts\BootstrapLayoutsUpdateManager $update_manager: The Bootstrap Layouts update manager.

Overrides BootstrapLayoutsPluginManager::__construct

File

src/BootstrapLayoutsManager.php, line 50

Class

BootstrapLayoutsManager
Class BootstrapLayoutsManager

Namespace

Drupal\bootstrap_layouts

Code

public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler, ThemeHandlerInterface $theme_handler, ThemeManagerInterface $theme_manager, LayoutPluginManager $layout_manager, BootstrapLayoutsUpdateManager $update_manager) {
  parent::__construct($namespaces, $cache_backend, $module_handler, $theme_handler, $theme_manager, 'Drupal\\bootstrap_layouts\\Plugin\\BootstrapLayouts\\BootstrapLayoutsHandlerInterface', 'Drupal\\bootstrap_layouts\\Annotation\\BootstrapLayoutsHandler');
  $this->layoutManager = $layout_manager;
  $this->updateManager = $update_manager;
  $this
    ->alterInfo('bootstrap_layouts_handler_info');
  $this
    ->setCacheBackend($cache_backend, 'bootstrap_layouts_handler_info');
}