file PreprocessManager.php

Namespace

Drupal\bootstrap\Plugin
  1. <?php
  2. namespace Drupal\bootstrap\Plugin;
  3. use Drupal\bootstrap\Theme;
  4. /**
  5. * Manages discovery and instantiation of Bootstrap preprocess hooks.
  6. *
  7. * @ingroup plugins_preprocess
  8. */
  9. class PreprocessManager extends PluginManager {
  10. /**
  11. * Constructs a new \Drupal\bootstrap\Plugin\PreprocessManager object.
  12. *
  13. * @param \Drupal\bootstrap\Theme $theme
  14. * The theme to use for discovery.
  15. */
  16. public function __construct(Theme $theme) {
  17. parent::__construct($theme, 'Plugin/Preprocess', 'Drupal\bootstrap\Plugin\Preprocess\PreprocessInterface', 'Drupal\bootstrap\Annotation\BootstrapPreprocess');
  18. $this->setCacheBackend(\Drupal::cache('discovery'), 'theme:' . $theme->getName() . ':preprocess', $this->getCacheTags());
  19. }
  20. }

Classes

Name Description
PreprocessManager Manages discovery and instantiation of Bootstrap preprocess hooks.