Sulu\Bundle\MediaBundle\Entity\CollectionRepositoryInterface::findCollectionByKey PHP 메소드

findCollectionByKey() 공개 메소드

Finds collection by key.
public findCollectionByKey ( string $key ) : Collection
$key string
리턴 Collection
    public function findCollectionByKey($key);

Usage Example

예제 #1
0
 /**
  * {@inheritdoc}
  */
 public function getByKey($key, $locale)
 {
     $collection = $this->collectionRepository->findCollectionByKey($key);
     if (!$collection) {
         return;
     }
     return $this->getApiEntity($collection, $locale);
 }