Prevents uninstallation of modules providing active field storage.
Hierarchy
- class \Drupal\field\FieldUninstallValidator implements ModuleUninstallValidatorInterface uses StringTranslationTrait
File
- core/modules/field/src/FieldUninstallValidator.php, line 14
Namespace
Drupal\field
Members
Name | Modifiers | Type | Description |
---|---|---|---|
FieldUninstallValidator::$fieldStorageConfigStorage | protected | property | The field storage config storage. |
FieldUninstallValidator::$fieldTypeManager | protected | property | The field type plugin manager. |
FieldUninstallValidator::getFieldStoragesByModule | protected | function | Returns all field storages for a specified module. |
FieldUninstallValidator::getFieldTypeLabel | protected | function | Returns the label for a specified field type. |
FieldUninstallValidator::validate | public | function | Determines the reasons a module can not be uninstalled. Overrides ModuleUninstallValidatorInterface::validate |
FieldUninstallValidator::__construct | public | function | Constructs a new FieldUninstallValidator. |
StringTranslationTrait::$stringTranslation | protected | property | The string translation service. |
StringTranslationTrait::formatPlural | protected | function | Formats a string containing a count of items. |
StringTranslationTrait::getNumberOfPlurals | protected | function | Returns the number of plurals supported by a given language. |
StringTranslationTrait::getStringTranslation | protected | function | Gets the string translation service. |
StringTranslationTrait::setStringTranslation | public | function | Sets the string translation service to use. |
StringTranslationTrait::t | protected | function | Translates a string to the current language or to a given language. |
Please login to continue.