function FieldUninstallValidator::getFieldTypeLabel
Same name in other branches
- 9 core/modules/field/src/FieldUninstallValidator.php \Drupal\field\FieldUninstallValidator::getFieldTypeLabel()
- 8.9.x core/modules/field/src/FieldUninstallValidator.php \Drupal\field\FieldUninstallValidator::getFieldTypeLabel()
- 10 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'];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.