Neos\Media\Domain\Model\Asset::getAssetCollections PHP Метод

getAssetCollections() публичный Метод

Return the asset collections this asset is included in
public getAssetCollections ( ) : Doctrine\Common\Collections\Collection
Результат Doctrine\Common\Collections\Collection
    public function getAssetCollections()
    {
        return $this->assetCollections;
    }

Usage Example

 /**
  * Edit an asset
  *
  * @param Asset $asset
  * @return void
  */
 public function editAction(Asset $asset)
 {
     $this->view->assignMultiple(array('tags' => $asset->getAssetCollections()->count() > 0 ? $this->tagRepository->findByAssetCollections($asset->getAssetCollections()->toArray()) : $this->tagRepository->findAll(), 'asset' => $asset, 'assetCollections' => $this->assetCollectionRepository->findAll()));
 }