Skip to content

Commit 1f34abd

Browse files
committed
API Rename FormField Value to getFormattedValue
1 parent ca07337 commit 1f34abd

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/GridFieldAddNewInlineButton.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ private function getRowTemplate(GridField $grid, GridFieldEditableColumns $edita
174174
public function handleSave(GridField $grid, DataObjectInterface $record)
175175
{
176176
$list = $grid->getList();
177-
$value = $grid->Value();
177+
$value = $grid->getValue();
178178

179179
if (!isset($value[GridFieldAddNewInlineButton::POST_KEY])
180180
|| !is_array($value[GridFieldAddNewInlineButton::POST_KEY])

src/GridFieldEditableColumns.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public function handleSave(GridField $grid, DataObjectInterface $record)
119119
{
120120
/** @var DataList $list */
121121
$list = $grid->getList();
122-
$value = $grid->Value();
122+
$value = $grid->getValue();
123123

124124
if (!isset($value[GridFieldEditableColumns::POST_KEY])
125125
|| !is_array($value[GridFieldEditableColumns::POST_KEY])

src/GridFieldNestedForm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ public function ToggleLink($action = null): string
447447
public function handleSave(GridField $gridField, DataObjectInterface $record)
448448
{
449449
$postKey = GridFieldNestedForm::POST_KEY;
450-
$value = $gridField->Value();
450+
$value = $gridField->getValue();
451451
if (isset($value['GridState']) && $value['GridState']) {
452452
// set grid state from value, to store open/closed toggle state for nested forms
453453
$gridField->getState(false)->setValue($value['GridState']);

src/GridFieldOrderableRows.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ public function handleMoveToPage(GridField $grid, $request)
575575
public function handleSave(GridField $grid, DataObjectInterface $record)
576576
{
577577
if (!$this->immediateUpdate) {
578-
$value = $grid->Value();
578+
$value = $grid->getValue();
579579
$sortedIDs = $this->getSortedIDs($value);
580580
if ($sortedIDs) {
581581
$this->executeReorder($grid, $sortedIDs);

0 commit comments

Comments
 (0)