4 * Contains \Drupal\bootstrap\Plugin\AlterManager.
7 namespace Drupal\bootstrap\Plugin;
9 use Drupal\bootstrap\Theme;
12 * Manages discovery and instantiation of Bootstrap hook alters.
14 * @ingroup plugins_alter
16 class AlterManager extends PluginManager {
19 * Constructs a new \Drupal\bootstrap\Plugin\AlterManager object.
21 * @param \Drupal\bootstrap\Theme $theme
22 * The theme to use for discovery.
24 public function __construct(Theme $theme) {
25 parent::__construct($theme, 'Plugin/Alter', 'Drupal\bootstrap\Plugin\Alter\AlterInterface', 'Drupal\bootstrap\Annotation\BootstrapAlter');
26 $this->setCacheBackend(\Drupal::cache('discovery'), 'theme:' . $theme->getName() . ':alter', $this->getCacheTags());