file FormManager.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 form alters.
  6. *
  7. * @ingroup plugins_form
  8. */
  9. class FormManager extends PluginManager {
  10. /**
  11. * Constructs a new \Drupal\bootstrap\Plugin\FormManager 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/Form', 'Drupal\bootstrap\Plugin\Form\FormInterface', 'Drupal\bootstrap\Annotation\BootstrapForm');
  18. $this->setCacheBackend(\Drupal::cache('discovery'), 'theme:' . $theme->getName() . ':form', $this->getCacheTags());
  19. }
  20. }

Classes

Name Description
FormManager Manages discovery and instantiation of Bootstrap form alters.