From 87e0f3a9e4095e718374c5beb00977b162210b53 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Tue, 14 Jan 2025 16:17:19 +1300 Subject: [PATCH] API Rename FormField Value to getFormattedValue --- src/Form/AbstractLinkField.php | 2 +- src/Form/MultiLinkField.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Form/AbstractLinkField.php b/src/Form/AbstractLinkField.php index 6a8f8e48..06c548cb 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->getValue(); $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()); } /**