FieldUninstallValidator::getFieldTypeLabel

protected FieldUninstallValidator::getFieldTypeLabel($field_type)

Returns the label for a specified field type.

Parameters

string $field_type: The field type.

Return value

string The field type label.

File

core/modules/field/src/FieldUninstallValidator.php, line 98

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'];
}
doc_Drupal
2016-10-29 09:12:56
Comments
Leave a Comment

Please login to continue.