function FieldUninstallValidator::validateConfigImport
Same name in other branches
- 9 core/modules/field/src/FieldUninstallValidator.php \Drupal\field\FieldUninstallValidator::validateConfigImport()
- 11.x core/modules/field/src/FieldUninstallValidator.php \Drupal\field\FieldUninstallValidator::validateConfigImport()
Overrides ConfigImportModuleUninstallValidatorInterface::validateConfigImport
File
-
core/
modules/ field/ src/ FieldUninstallValidator.php, line 79
Class
- FieldUninstallValidator
- Prevents uninstallation of modules providing active field storage.
Namespace
Drupal\fieldCode
public function validateConfigImport(string $module, StorageInterface $source_storage) : array {
// The field_config_import_steps_alter() method removes field data prior to
// configuration import so the checks in ::validate() are unnecessary.
return [];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.