mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-28 02:23:51 +00:00
work on basic CRUDController and improve configuration
This commit is contained in:
@@ -17,27 +17,4 @@ class AdminCountryCRUDController extends CRUDController
|
||||
{
|
||||
$this->paginatorFactory = $paginator;
|
||||
}
|
||||
|
||||
protected function getEntity(): string
|
||||
{
|
||||
return Country::class;
|
||||
}
|
||||
|
||||
protected function orderingOptions(): array
|
||||
{
|
||||
return [
|
||||
'countryCode' => 'ASC'
|
||||
];
|
||||
}
|
||||
|
||||
protected function getTemplateParameters($action): array
|
||||
{
|
||||
switch ($action) {
|
||||
case 'index':
|
||||
return [
|
||||
'columns' => [ 'countryCode', 'name' ],
|
||||
'title' => 'Liste des pays'
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user