public function Monthly::defaultConfiguration in Commerce Core 8.2
Gets default configuration for this plugin.
Return value
array An associative array with the default configuration.
Overrides SequentialNumberPatternBase::defaultConfiguration
File
- modules/
number_pattern/ src/ Plugin/ Commerce/ NumberPattern/ Monthly.php, line 21
Class
- Monthly
- Provides the monthly number pattern.
Namespace
Drupal\commerce_number_pattern\Plugin\Commerce\NumberPatternCode
public function defaultConfiguration() {
return [
'pattern' => '[pattern:year]-[pattern:month]-[pattern:number]',
] + parent::defaultConfiguration();
}