9f17301b370a835c67e2ce3c012c3b85601cc1de
[yaffs-website] / web / themes / contrib / bootstrap / src / Plugin / AlterManager.php
1 <?php
2 /**
3  * @file
4  * Contains \Drupal\bootstrap\Plugin\AlterManager.
5  */
6
7 namespace Drupal\bootstrap\Plugin;
8
9 use Drupal\bootstrap\Theme;
10
11 /**
12  * Manages discovery and instantiation of Bootstrap hook alters.
13  *
14  * @ingroup plugins_alter
15  */
16 class AlterManager extends PluginManager {
17
18   /**
19    * Constructs a new \Drupal\bootstrap\Plugin\AlterManager object.
20    *
21    * @param \Drupal\bootstrap\Theme $theme
22    *   The theme to use for discovery.
23    */
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());
27   }
28
29 }