private function formatCollection(ActionButtonCollection
$actionButtons): array
{ return array_values(array_map(function DActionButtonEntity
$button): array
{ /** @var AppEntity $app */
$app =
$button->
getApp();
return [ 'app' =>
$app->
getName(),
'id' =>
$button->
getId(),
'label' =>
$this->
mapTranslatedLabels($button),
'action' =>
$button->
getAction(),
'url' =>
$button->
getUrl(),
'icon' =>
$app->
getIcon(),
];
},
$actionButtons->
getElements()));
} /**
* @return array<string, string|null>
*/
private function mapTranslatedLabels(ActionButtonEntity
$button): array
{