4 * Contains \Drupal\bootstrap\Plugin\FormManager.
7 namespace Drupal\bootstrap\Plugin;
9 use Drupal\bootstrap\Theme;
12 * Manages discovery and instantiation of Bootstrap form alters.
14 * @ingroup plugins_form
16 class FormManager extends PluginManager {
19 * Constructs a new \Drupal\bootstrap\Plugin\FormManager object.
21 * @param \Drupal\bootstrap\Theme $theme
22 * The theme to use for discovery.
24 public function __construct(Theme $theme) {
25 parent::__construct($theme, 'Plugin/Form', 'Drupal\bootstrap\Plugin\Form\FormInterface', 'Drupal\bootstrap\Annotation\BootstrapForm');
26 $this->setCacheBackend(\Drupal::cache('discovery'), 'theme:' . $theme->getName() . ':form', $this->getCacheTags());