Skip to content
Snippets Groups Projects

Move the changes from patch 3128190-15.patch to a Git merge request.

Files
2
@@ -87,19 +87,4 @@ public function setFieldDefinition($field_definition) {
return $this;
}
/**
* Gets the label of the field type.
*
* If the label hasn't been set, then fall back to the label of the
* typed data definition.
*
* @return string
* The label of the field type.
*
* @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException
*/
public function getLabel() {
return parent::getLabel() ?: $this->getTypedDataManager()->getDefinition($this->getDataType())['label'];
}
}
Loading