3 namespace Drupal\bootstrap\Plugin;
5 use Drupal\bootstrap\Theme;
8 * Manages discovery and instantiation of Bootstrap preprocess hooks.
10 * @ingroup plugins_preprocess
12 class PreprocessManager extends PluginManager {
15 * Constructs a new \Drupal\bootstrap\Plugin\PreprocessManager object.
17 * @param \Drupal\bootstrap\Theme $theme
18 * The theme to use for discovery.
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());