public function PhotosImage::setAlbumId in Album Photos 8.5
Same name and namespace in other branches
- 6.0.x src/Entity/PhotosImage.php \Drupal\photos\Entity\PhotosImage::setAlbumId()
Sets the image album id.
Parameters
int $albumId: The image album id.
Return value
$this The called image entity.
Overrides PhotosImageInterface::setAlbumId
File
- src/
Entity/ PhotosImage.php, line 242
Class
- PhotosImage
- Defines the photos image entity class.
Namespace
Drupal\photos\EntityCode
public function setAlbumId($album_id) {
$this
->set('album_id', $album_id);
return $this;
}