Loading src/UnicaenEtat/Service/EtatType/EtatTypeService.php +11 −0 Original line number Diff line number Diff line Loading @@ -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 Loading
src/UnicaenEtat/Service/EtatType/EtatTypeService.php +11 −0 Original line number Diff line number Diff line Loading @@ -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