Skip to content
This repository has been archived by the owner on Sep 25, 2024. It is now read-only.

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 16, 2023
1 parent 2fd53d2 commit 5661abb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ 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',
'#default_value' => $json_object['callToAction']['text'] ?? '',
'#description' => $this->t('Display text of the link.'),
'#states' => [
'required' => [
Expand Down

0 comments on commit 5661abb

Please sign in to comment.