Property | Type | Description | |
---|---|---|---|
$collectionEntityName | |||
$fieldDescriptors | |||
$fileEntityName | |||
$fileVersionEntityName | |||
$fileVersionMetaEntityName | |||
$mediaEntityKey |
Method | Description | |
---|---|---|
addMediaToEntity ( string $entityName, string $id, string $mediaId ) : |
Adds a relation between a media and the entity. | |
getFieldsView ( $entityName ) : Response | Returns the the media fields for the current entity. | |
getMultipleView ( string $entityName, string $routeName, |
Returns a view containing all media of an entity. | |
removeMediaFromEntity ( string $entityName, string $id, string $mediaId ) : Response | Removes a media from the relation with an entity. |
Method | Description | |
---|---|---|
addThumbnails ( array $entities, string $locale ) : array | Takes an array of entities and resets the thumbnails-property containing the media id with the actual urls to the thumbnails. | |
addUrls ( array $entities, string $locale ) : array | Takes an array of entities and resets the url-property with the actual urls to the original file. | |
getFieldDescriptors ( $entityName, $id ) : |
Returns the field-descriptors. Ensures that the descriptors get only instantiated once. | |
getMediaManager ( ) : Sulu\Bundle\MediaBundle\Media\Manager\MediaManagerInterface | ||
initFieldDescriptors ( $entityName, $id ) | Creates the array of field-descriptors. |
protected getFieldsView ( $entityName ) : Response | ||
$entityName | ||
return | Response |
protected getMultipleView ( string $entityName, string $routeName, |
||
$entityName | string | |
$routeName | string | |
$contactManager | ||
$id | string | |
$request | Request | |
return | Response |