protected function ConfigImporterService::filter in Config Importer and Tools 8
Same name and namespace in other branches
- 8.2 src/ConfigImporterService.php \Drupal\config_import\ConfigImporterService::filter()
Clean storage.
Parameters
FileStorage $storage: A storage to prepare.
See also
hook_config_import_configs_alter()
1 call to ConfigImporterService::filter()
- ConfigImporterService::importConfigs in src/
ConfigImporterService.php - Import configurations.
File
- src/
ConfigImporterService.php, line 273
Class
- ConfigImporterService
- Class ConfigImporterService.
Namespace
Drupal\config_importCode
protected function filter(FileStorage $storage) {
$configs = [];
// Collect config names which are not allowed for import.
$this->moduleHandler
->alter('config_import_configs', $configs);
foreach ($configs as $config) {
$storage
->delete($config);
}
}