You are here

public function YamlFormHandlerManager::__construct in YAML Form 8

Constructs a new YamlFormHandlerManager.

Parameters

\Traversable $namespaces: An object that implements \Traversable which contains the root paths keyed by the corresponding namespace to look for plugin implementations.

\Drupal\Core\Cache\CacheBackendInterface $cache_backend: Cache backend instance to use.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

Overrides DefaultPluginManager::__construct

File

src/YamlFormHandlerManager.php, line 37

Class

YamlFormHandlerManager
Manages form handler plugins.

Namespace

Drupal\yamlform

Code

public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
  parent::__construct('Plugin/YamlFormHandler', $namespaces, $module_handler, 'Drupal\\yamlform\\YamlFormHandlerInterface', 'Drupal\\yamlform\\Annotation\\YamlFormHandler');
  $this
    ->alterInfo('yamlform_handler_info');
  $this
    ->setCacheBackend($cache_backend, 'yamlform_handler_plugins');
}