Maybe a minor issue, but the getLabel
method is missing the $type
argument:
$menu->addChild(
$admin->getLabelTranslatorStrategy()->getLabel($transition->getName(), 'workflow'),
$options
);
Which leads to something like:
workflow:
_accept: Accetta
_reject: Rifiuta
_submit: Invia
_suspend: Sospendi
What about using "label" or "transition" as $type
argument?