You are here

public function IntervalBase::defaultConfiguration in Commerce Recurring Framework 8

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides BillingScheduleBase::defaultConfiguration

1 call to IntervalBase::defaultConfiguration()
Fixed::defaultConfiguration in src/Plugin/Commerce/BillingSchedule/Fixed.php
Gets default configuration for this plugin.
1 method overrides IntervalBase::defaultConfiguration()
Fixed::defaultConfiguration in src/Plugin/Commerce/BillingSchedule/Fixed.php
Gets default configuration for this plugin.

File

src/Plugin/Commerce/BillingSchedule/IntervalBase.php, line 18

Class

IntervalBase
Base class for interval-based billing schedules.

Namespace

Drupal\commerce_recurring\Plugin\Commerce\BillingSchedule

Code

public function defaultConfiguration() {
  return [
    'trial_interval' => [],
    'interval' => [
      'number' => 1,
      'unit' => 'month',
    ],
  ] + parent::defaultConfiguration();
}