Skip to content

Commit

Permalink
[SDPAP-7476] Remove the unneeded default value
Browse files Browse the repository at this point in the history
### Jira
https://digital-vic.atlassian.net/browse/SDPAP-7476

### Change
Remove the unneeded default value for $element['callToAction']['text’]
  • Loading branch information
vincent-gao committed Aug 4, 2023
1 parent 2fd53d2 commit 4cd0ed4
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,6 @@ public function formElement(FieldItemListInterface $items, $delta, array $elemen
$element['callToAction']['text'] = [
'#type' => 'textfield',
'#title' => $this->t('Text'),
'#default_value' => $json_object['callToAction']['text'] ?? 'View all',
'#description' => $this->t('Display text of the link.'),
'#states' => [
'required' => [
Expand Down

0 comments on commit 4cd0ed4

Please sign in to comment.