Skip to content

Commit

Permalink
API Rename FormField Value to getFormattedValue
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Jan 22, 2025
1 parent 36bc16b commit 397cb72
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Forms/TextCheckboxGroupField.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function performReadonlyTransformation()
if ($titleField) {
$field->replaceField('Title', LiteralField::create(
'Title',
$titleField->Value()
$titleField->getFormattedValue()
));
}

Expand All @@ -103,7 +103,7 @@ public function performReadonlyTransformation()
if ($showTitle) {
$field->replaceField('ShowTitle', LiteralField::create(
'ShowTitle',
$showTitle->Value() === 'Yes' ? $displayedText : $notDisplayedText
$showTitle->getValue() === 'Yes' ? $displayedText : $notDisplayedText
)->addExtraClass('show-title'));
}
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Behat/Context/FeatureContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ public function theFieldForBlockShouldContain($field, $blockNumber, $negate, $co
return;
}

$actual = (string) $fieldElem->getValue();
$actual = (string) $fieldElem->getFormattedValue();
$regex = '/^' . preg_quote($content, '/') . '$/ui';

if ($negate) {
Expand Down

0 comments on commit 397cb72

Please sign in to comment.