protected function FieldUninstallValidator::getFieldTypeLabel in Drupal 10
Same name and namespace in other branches
- 8 core/modules/field/src/FieldUninstallValidator.php \Drupal\field\FieldUninstallValidator::getFieldTypeLabel()
- 9 core/modules/field/src/FieldUninstallValidator.php \Drupal\field\FieldUninstallValidator::getFieldTypeLabel()
Returns the label for a specified field type.
Parameters
string $field_type: The field type.
Return value
string The field type label.
1 call to FieldUninstallValidator::getFieldTypeLabel()
- FieldUninstallValidator::validate in core/
modules/ field/ src/ FieldUninstallValidator.php - Determines the reasons a module can not be uninstalled.
File
- core/
modules/ field/ src/ FieldUninstallValidator.php, line 107
Class
- FieldUninstallValidator
- Prevents uninstallation of modules providing active field storage.
Namespace
Drupal\fieldCode
protected function getFieldTypeLabel($field_type) {
return $this->fieldTypeManager
->getDefinitions()[$field_type]['label'];
}