public function WebformExporterManager::removeExcludeDefinitions in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Plugin/WebformExporterManager.php \Drupal\webform\Plugin\WebformExporterManager::removeExcludeDefinitions()
Remove excluded plugin definitions.
Parameters
array $definitions: The plugin definitions to filter.
Return value
array An array of plugin definitions with excluded plugins removed.
Overrides WebformPluginManagerExcludedInterface::removeExcludeDefinitions
2 calls to WebformExporterManager::removeExcludeDefinitions()
- WebformExporterManager::getInstances in src/
Plugin/ WebformExporterManager.php - Get all available webform element plugin instances.
- WebformExporterManager::getOptions in src/
Plugin/ WebformExporterManager.php - Get exporter plugins as options.
File
- src/
Plugin/ WebformExporterManager.php, line 66
Class
- WebformExporterManager
- Manages results exporter plugins.
Namespace
Drupal\webform\PluginCode
public function removeExcludeDefinitions(array $definitions) {
$definitions = isset($definitions) ? $definitions : $this
->getDefinitions();
$excluded = $this->configFactory
->get('webform.settings')
->get('export.excluded_exporters');
return $excluded ? array_diff_key($definitions, $excluded) : $definitions;
}