Commit f911f107 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

...

parent 134c0c44
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -208,4 +208,15 @@ class EtatTypeService {
        ];
        return $this_option;
    }

    public function generateBadgeEtatByCategorieCode(string $categorieCode, array $options = []): array
    {
        $etats = $this->getEtatsTypesByCategorieCode($categorieCode);

        $dictionnaire = [];
        foreach ($etats as $etat) {
            $dictionnaire[$etat->getCode()] = $this->renderer->etattype($etat, $options);
        }
        return $dictionnaire;
    }
}
 No newline at end of file