file AlterManager.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 hook alters.
  6. *
  7. * @ingroup plugins_alter
  8. */
  9. class AlterManager extends PluginManager {
  10. /**
  11. * Constructs a new \Drupal\bootstrap\Plugin\AlterManager 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/Alter', 'Drupal\bootstrap\Plugin\Alter\AlterInterface', 'Drupal\bootstrap\Annotation\BootstrapAlter');
  18. $this->setCacheBackend(\Drupal::cache('discovery'), 'theme:' . $theme->getName() . ':alter', $this->getCacheTags());
  19. }
  20. }

Classes

Name Description
AlterManager Manages discovery and instantiation of Bootstrap hook alters.