function public function AlterManager::__construct

8.x-3.x AlterManager.php public AlterManager::__construct(Theme $theme)

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

Parameters

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

Overrides PluginManager::__construct

Class

AlterManager
Manages discovery and instantiation of Bootstrap hook alters.

Namespace

Drupal\bootstrap\Plugin

Source src/Plugin/AlterManager.php (line 20)

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());
}