->
addAssociation('app'
) ->
addAssociation('translations.language.locale'
) ->
addFilter( new EqualsFilter('entity',
$entity),
new EqualsFilter('view',
$view),
new EqualsFilter('app.active', true
) );
/** @var ActionButtonCollection $actionButtons */
$actionButtons =
$this->actionButtonRepository->
search($criteria,
$context)->
getEntities();
return $this->
formatCollection($actionButtons);
} /**
* @return array<int, array<string, array<string, string|null>|string|null>>
*/
private function formatCollection(ActionButtonCollection
$actionButtons): array
{ return array_values(array_map(function DActionButtonEntity
$button): array
{ /** @var AppEntity $app */
$app =
$button->
getApp();