You are here

protected function FieldUninstallValidator::getFieldTypeLabel in Drupal 9

Same name and namespace in other branches
  1. 8 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 97

Class

FieldUninstallValidator
Prevents uninstallation of modules providing active field storage.

Namespace

Drupal\field

Code

protected function getFieldTypeLabel($field_type) {
  return $this->fieldTypeManager
    ->getDefinitions()[$field_type]['label'];
}