class FormManager

Manages discovery and instantiation of Bootstrap form alters.


  • class \Drupal\bootstrap\Plugin\PluginManager extends \Drupal\Core\Plugin\DefaultPluginManager

Expanded class hierarchy of FormManager

Related topics

1 file declares its use of FormManager


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());



Contains filters are case sensitive
Name Modifiers Type Description
FormManager::__construct public function Constructs a new \Drupal\bootstrap\Plugin\FormManager object. Overrides PluginManager::__construct
PluginManager::$theme protected property The current theme.
PluginManager::$themeHandler protected property The theme handler to check if theme exists.
PluginManager::$themeManager protected property The theme manager to invoke alter hooks.
PluginManager::alterDefinitions protected function
PluginManager::createInstance public function
PluginManager::getCacheTags public function Retrieves the cache tags used to invalidate caches.
PluginManager::getDefinitions public function
PluginManager::getDefinitionsLike public function Retrieves all definitions where the plugin ID matches a certain criteria.
PluginManager::providerExists protected function