Small improvements
This commit is contained in:
@@ -29,15 +29,19 @@ class PaymentMethod extends CommonModel
|
||||
];
|
||||
|
||||
/**
|
||||
* Standard-Werte (name/description) je Slug -- aus den Zahlungsmodulen aufgebaut.
|
||||
* Standard-Werte (name/description/configuration) je Slug -- aus den Zahlungsmodulen aufgebaut.
|
||||
*
|
||||
* @return array<string, array{name: string, description: ?string}>
|
||||
* @return array<string, array{name: string, description: ?string, configuration: array<string, mixed>}>
|
||||
*/
|
||||
public static function defaults(): array
|
||||
{
|
||||
$defaults = [];
|
||||
foreach (EventPaymentModuleRegistry::all() as $slug => $module) {
|
||||
$defaults[$slug] = ['name' => $module->defaultName(), 'description' => $module->defaultDescription()];
|
||||
$defaults[$slug] = [
|
||||
'name' => $module->defaultName(),
|
||||
'description' => $module->defaultDescription(),
|
||||
'configuration' => $module->defaultConfiguration(),
|
||||
];
|
||||
}
|
||||
|
||||
return $defaults;
|
||||
|
||||
Reference in New Issue
Block a user