FormManager.php in Express 8
Contains \Drupal\bootstrap\Plugin\FormManager.
Namespace
Drupal\bootstrap\PluginFile
themes/contrib/bootstrap/src/Plugin/FormManager.phpView source
<?php
/**
* @file
* Contains \Drupal\bootstrap\Plugin\FormManager.
*/
namespace Drupal\bootstrap\Plugin;
use Drupal\bootstrap\Theme;
/**
* Manages discovery and instantiation of Bootstrap form alters.
*
* @ingroup plugins_form
*/
class FormManager extends PluginManager {
/**
* Constructs a new \Drupal\bootstrap\Plugin\FormManager object.
*
* @param \Drupal\bootstrap\Theme $theme
* The theme to use for discovery.
*/
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());
}
}
Classes
Name | Description |
---|---|
FormManager | Manages discovery and instantiation of Bootstrap form alters. |