public function PhotosUploadInterface::saveExistingMedia in Album Photos 8.5
Same name and namespace in other branches
- 6.0.x src/PhotosUploadInterface.php \Drupal\photos\PhotosUploadInterface::saveExistingMedia()
Attach media to PhotosImage entity.
Parameters
int $mediaId: The media entity_id.
int $albumId: The album entity_id.
Return value
bool TRUE if media saved successfully.
1 method overrides PhotosUploadInterface::saveExistingMedia()
- PhotosUpload::saveExistingMedia in src/
PhotosUpload.php - Attach media to PhotosImage entity.
File
- src/
PhotosUploadInterface.php, line 59
Class
- PhotosUploadInterface
- Photos upload and file management functions.
Namespace
Drupal\photosCode
public function saveExistingMedia($mediaId, $albumId);