Skip to content

Commit

Permalink
Feature: add currency switcher settings to Form Settings
Browse files Browse the repository at this point in the history
  • Loading branch information
pauloiankoski committed Apr 15, 2024
1 parent 2f2310d commit c270b44
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/DonationForms/Properties/FormSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,11 +230,18 @@ class FormSettings implements Arrayable, Jsonable
*/
public $designSettingsImageOpacity;

/* @since 3.7.0
/**
* @since 3.7.0
* @var string
*/
public $formExcerpt;

/**
* @unreleased
* @var array
*/
public $currencySwitcherSettings;

/**
* @since 3.7.0 Added formExcerpt
Expand Down Expand Up @@ -337,6 +344,10 @@ public static function fromArray(array $array): self

$self->formExcerpt = $array['formExcerpt'] ?? '';

$self->currencySwitcherSettings = isset($array['currencySwitcherSettings']) && is_array(
$array['currencySwitcherSettings']
) ? $array['currencySwitcherSettings'] : [];

return $self;
}

Expand Down

0 comments on commit c270b44

Please sign in to comment.