You are here

public function FormManager::__construct in Express 8

Constructs a new \Drupal\bootstrap\Plugin\FormManager object.

Parameters

\Drupal\bootstrap\Theme $theme: The theme to use for discovery.

Overrides PluginManager::__construct

File

themes/contrib/bootstrap/src/Plugin/FormManager.php, line 24
Contains \Drupal\bootstrap\Plugin\FormManager.

Class

FormManager
Manages discovery and instantiation of Bootstrap form alters.

Namespace

Drupal\bootstrap\Plugin

Code

public function __construct(Theme $theme) {
  parent::__construct($theme, 'Plugin/Form', 'Drupal\\bootstrap\\Plugin\\Form\\FormInterface', 'Drupal\\bootstrap\\Annotation\\BootstrapForm');
  $this
    ->setCacheBackend(\Drupal::cache('discovery'), 'theme:' . $theme
    ->getName() . ':form', $this
    ->getCacheTags());
}