Further Drupal 8.6.4 changes. Some core files were not committed before a commit...
[yaffs-website] / web / themes / contrib / bootstrap / src / Plugin / PreprocessManager.php
1 <?php
2
3 namespace Drupal\bootstrap\Plugin;
4
5 use Drupal\bootstrap\Theme;
6
7 /**
8  * Manages discovery and instantiation of Bootstrap preprocess hooks.
9  *
10  * @ingroup plugins_preprocess
11  */
12 class PreprocessManager extends PluginManager {
13
14   /**
15    * Constructs a new \Drupal\bootstrap\Plugin\PreprocessManager object.
16    *
17    * @param \Drupal\bootstrap\Theme $theme
18    *   The theme to use for discovery.
19    */
20   public function __construct(Theme $theme) {
21     parent::__construct($theme, 'Plugin/Preprocess', 'Drupal\bootstrap\Plugin\Preprocess\PreprocessInterface', 'Drupal\bootstrap\Annotation\BootstrapPreprocess');
22     $this->setCacheBackend(\Drupal::cache('discovery'), 'theme:' . $theme->getName() . ':preprocess', $this->getCacheTags());
23   }
24
25 }