public function YamlFormExporterManager::__construct in YAML Form 8
Constructs a new YamlFormExporterManager.
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_exporter: The module exporter.
Overrides DefaultPluginManager::__construct
File
- src/
YamlFormExporterManager.php, line 36
Class
- YamlFormExporterManager
- Manages results exporter plugins.
Namespace
Drupal\yamlformCode
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_exporter) {
parent::__construct('Plugin/YamlFormExporter', $namespaces, $module_exporter, 'Drupal\\yamlform\\YamlFormExporterInterface', 'Drupal\\yamlform\\Annotation\\YamlFormExporter');
$this
->alterInfo('yamlform_exporter_info');
$this
->setCacheBackend($cache_backend, 'yamlform_exporter_plugins');
}