<?php


namespace AutoAdmin\Bundle\Admin\DependencyInjection\Configuration;


class ConfigurationDefault
{
    public static function getDefaultActions(): array
    {
        return [
            ['name' => 'Liste', 'action' => 'list', 'buttonColor' => 'secondary', 'icon' => 'fa fa-th',],
            ['name' => 'Voir', 'action' => 'view', 'buttonColor' => 'secondary', 'icon' => 'fa fa-info',],
            ['name' => 'Création', 'action' => 'create', 'buttonColor' => 'primary', 'icon' => 'fa fa-plus',],
            ['name' => 'Édition', 'action' => 'update', 'buttonColor' => 'success', 'icon' => 'far fa-pen',],
            ['name' => 'Afficher', 'action' => 'show', 'buttonColor' => 'primary', 'icon' => 'far fa-eye',],
            ['name' => 'Dupliquer', 'action' => 'duplicate', 'buttonColor' => 'secondary', 'icon' => 'far fa-copy',],
            [
                'name' => 'Supprimer',
                'action' => 'delete',
                'buttonColor' => 'danger',
                'classes' => 'prevent',
                'icon' => 'far fa-trash-can',
            ],
        ];
    }

    public static function getDefaultControllerConfig(): array
    {
        return [
            'roles' => ConfigurationDefault::getDefaultRoles(),
            'actions' => [],
        ];
    }

    public static function getDefaultRoles(): array
    {
        return [
            'ROLE_ADMIN',
        ];
    }
}
