public function YamlFormExporterManager::getInstances in YAML Form 8
Get all available form element plugin instances.
Parameters
array $configuration: Export configuration (aka export options).
Return value
\Drupal\yamlform\YamlFormExporterInterface[] An array of all available form exporter plugin instances.
Overrides YamlFormExporterManagerInterface::getInstances
File
- src/
YamlFormExporterManager.php, line 55
Class
- YamlFormExporterManager
- Manages results exporter plugins.
Namespace
Drupal\yamlformCode
public function getInstances(array $configuration = []) {
$instances = [];
$plugin_definitions = $this
->getDefinitions();
$plugin_definitions = $this
->getSortedDefinitions($plugin_definitions);
foreach ($plugin_definitions as $plugin_id => $plugin_definition) {
$instances[$plugin_id] = $this
->createInstance($plugin_id, $configuration);
}
return $instances;
}