diff --git a/src/Form/AbstractLinkField.php b/src/Form/AbstractLinkField.php index 6a8f8e48..c111fe5f 100644 --- a/src/Form/AbstractLinkField.php +++ b/src/Form/AbstractLinkField.php @@ -136,7 +136,7 @@ public function getSchemaStateDefaults(): array protected function getDefaultAttributes(): array { $attributes = parent::getDefaultAttributes(); - $attributes['data-value'] = $this->Value(); + $attributes['data-value'] = $this->getFormattedValue(); $attributes['data-can-create'] = $this->getOwner()->canEdit(); $attributes['data-readonly'] = $this->isReadonly(); $attributes['data-disabled'] = $this->isDisabled(); diff --git a/src/Form/MultiLinkField.php b/src/Form/MultiLinkField.php index 7729a8be..7be6bf76 100644 --- a/src/Form/MultiLinkField.php +++ b/src/Form/MultiLinkField.php @@ -52,7 +52,7 @@ protected function getDefaultAttributes(): array */ private function getValueArray(): array { - return $this->convertValueToArray($this->Value()); + return $this->convertValueToArray($this->getValue()); } /**