public function WebformExporterManager::getOptions in Webform 8.5
Same name and namespace in other branches
- 6.x src/Plugin/WebformExporterManager.php \Drupal\webform\Plugin\WebformExporterManager::getOptions()
Get exporter plugins as options.
Return value
array An associative array of options keyed by plugin id.
Overrides WebformExporterManagerInterface::getOptions
File
- src/
Plugin/ WebformExporterManager.php, line 89
Class
- WebformExporterManager
- Manages results exporter plugins.
Namespace
Drupal\webform\PluginCode
public function getOptions() {
$plugin_definitions = $this
->getDefinitions();
$plugin_definitions = $this
->getSortedDefinitions($plugin_definitions);
$plugin_definitions = $this
->removeExcludeDefinitions($plugin_definitions);
$options = [];
foreach ($plugin_definitions as $plugin_id => $plugin_definition) {
$options[$plugin_id] = $plugin_definition['label'];
}
return $options;
}