} else { $criteria->
setTotalCountMode(self::TOTAL_COUNT_MODE_MAPPING
[$totalCountMode] ?? Criteria::TOTAL_COUNT_MODE_NONE
);
} } /**
* @param array<string, mixed> $payload
*/
private function parse(array
$payload, Criteria
$criteria, EntityDefinition
$definition, Context
$context, ?int
$maxLimit): Criteria
{ $searchException =
new SearchRequestException();
if (isset($payload['ids'
])) { if (\
is_string($payload['ids'
])) { $ids =
array_filter(explode('|',
$payload['ids'
]));
} else { $ids =
$payload['ids'
];
} try { $criteria->
setIds($ids);
} catch (InvalidCriteriaIdsException
$e) {