You are here

public function PhotosUploadInterface::saveExistingMedia in Album Photos 6.0.x

Same name and namespace in other branches
  1. 8.5 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\photos

Code

public function saveExistingMedia($mediaId, $albumId);