work on basic CRUDController and improve configuration

This commit is contained in:
2019-11-22 13:45:30 +01:00
parent 4575812a3b
commit e6bf77530b
8 changed files with 355 additions and 47 deletions

View File

@@ -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'
];
}
}
}