Méthode |
Description |
|
addMedia ( string | Symfony\Component\HttpFoundation\File\UploadedFile $file ) : FileAdder |
Move a file to the medialibrary. |
|
clearMediaCollection ( string $collectionName = 'default' ) |
Remove all media in the given collection. |
|
copyMedia ( string | Symfony\Component\HttpFoundation\File\UploadedFile $file ) : FileAdder |
Copy a file to the medialibrary. |
|
getMedia ( string $collectionName = 'default', array | callable $filters = [] ) : Media |
Get media collection by its collectionName. |
|
hasMedia ( string $collectionMedia = '' ) : boolean |
Determine if there is media in the given collection. |
|
media ( ) : mixed |
Set the polymorphic relation. |
|
shouldDeletePreservingMedia ( ) : Media |
Determines if the media files should be preserved when the media object gets deleted. |
|