You are here

public function AlterManager::__construct in Express 8

Constructs a new \Drupal\bootstrap\Plugin\AlterManager object.

Parameters

\Drupal\bootstrap\Theme $theme: The theme to use for discovery.

Overrides PluginManager::__construct

File

themes/contrib/bootstrap/src/Plugin/AlterManager.php, line 24
Contains \Drupal\bootstrap\Plugin\AlterManager.

Class

AlterManager
Manages discovery and instantiation of Bootstrap hook alters.

Namespace

Drupal\bootstrap\Plugin

Code

public function __construct(Theme $theme) {
  parent::__construct($theme, 'Plugin/Alter', 'Drupal\\bootstrap\\Plugin\\Alter\\AlterInterface', 'Drupal\\bootstrap\\Annotation\\BootstrapAlter');
  $this
    ->setCacheBackend(\Drupal::cache('discovery'), 'theme:' . $theme
    ->getName() . ':alter', $this
    ->getCacheTags());
}