public function ContactSubscription::defaultConfiguration in Mailchimp E-Commerce 8
Gets default configuration for this plugin.
Return value
array An associative array with the default configuration.
Overrides CheckoutPaneBase::defaultConfiguration
File
- modules/
mailchimp_ecommerce_commerce/ src/ Plugin/ Commerce/ CheckoutPane/ ContactSubscription.php, line 24
Class
- ContactSubscription
- Provides the subscription information pane.
Namespace
Drupal\mailchimp_ecommerce_commerce\Plugin\Commerce\CheckoutPaneCode
public function defaultConfiguration() {
return [
'label' => 'Subscribe to our newsletter',
'review' => 0,
'review_label' => 'Subscribe to newsletter:',
'review_label_on' => 'Yes',
'review_label_off' => 'No',
] + parent::defaultConfiguration();
}