public function getByKey($key, $locale) { $collection = $this->collectionRepository->findCollectionByKey($key); if (!$collection) { return; } return $this->getApiEntity($collection, $locale); }