2024-05-27 19:47:28 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Form;
|
|
|
|
|
|
|
|
use App\Form\Actions\SettingStoreAction;
|
2024-08-01 10:25:48 +02:00
|
|
|
use App\Setting\Contracts\Viewable;
|
2024-05-27 19:47:28 +02:00
|
|
|
use App\Setting\Contracts\Storeable;
|
|
|
|
use App\Setting\LocalSettings;
|
|
|
|
|
2024-08-01 10:25:48 +02:00
|
|
|
class FormSettings extends LocalSettings implements Viewable, Storeable
|
2024-05-27 19:47:28 +02:00
|
|
|
{
|
|
|
|
public string $registerUrl;
|
2024-06-10 00:17:14 +02:00
|
|
|
public string $clearCacheUrl;
|
2024-05-27 19:47:28 +02:00
|
|
|
|
|
|
|
public static function group(): string
|
|
|
|
{
|
|
|
|
return 'form';
|
|
|
|
}
|
|
|
|
|
|
|
|
public static function slug(): string
|
|
|
|
{
|
|
|
|
return 'form';
|
|
|
|
}
|
|
|
|
|
|
|
|
public static function title(): string
|
|
|
|
{
|
|
|
|
return 'Formulare';
|
|
|
|
}
|
|
|
|
|
2024-08-01 11:17:49 +02:00
|
|
|
public static function storeAction(): string
|
2024-05-27 19:47:28 +02:00
|
|
|
{
|
2024-08-01 11:17:49 +02:00
|
|
|
return SettingStoreAction::class;
|
2024-05-27 19:47:28 +02:00
|
|
|
}
|
|
|
|
|
2024-08-01 11:17:49 +02:00
|
|
|
/**
|
|
|
|
* @inheritdoc
|
|
|
|
*/
|
|
|
|
public function viewData(): array
|
2024-05-27 19:47:28 +02:00
|
|
|
{
|
2024-08-01 11:17:49 +02:00
|
|
|
return [
|
|
|
|
'data' => [
|
|
|
|
'data' => [
|
|
|
|
'register_url' => $this->registerUrl,
|
|
|
|
'clear_cache_url' => $this->clearCacheUrl,
|
|
|
|
]
|
|
|
|
]
|
|
|
|
];
|
2024-05-27 19:47:28 +02:00
|
|
|
}
|
|
|
|
}
|