findCollectionByKey() public method

Finds collection by key.
public findCollectionByKey ( string $key ) : Collection
$key string
return Collection
Esempio n. 1
0
 /**
  * {@inheritdoc}
  */
 public function getByKey($key, $locale)
 {
     $collection = $this->collectionRepository->findCollectionByKey($key);
     if (!$collection) {
         return;
     }
     return $this->getApiEntity($collection, $locale);
 }