public function PhotosImage::getAlbumId in Album Photos 8.5
Same name and namespace in other branches
- 6.0.x src/Entity/PhotosImage.php \Drupal\photos\Entity\PhotosImage::getAlbumId()
Gets the image album id.
Return value
int The image album id.
Overrides PhotosImageInterface::getAlbumId
2 calls to PhotosImage::getAlbumId()
- PhotosImage::getAlbumUrl in src/
Entity/ PhotosImage.php - Gets the album url.
- PhotosImage::urlRouteParameters in src/
Entity/ PhotosImage.php - Gets an array of placeholders for this entity.
File
- src/
Entity/ PhotosImage.php, line 235
Class
- PhotosImage
- Defines the photos image entity class.
Namespace
Drupal\photos\EntityCode
public function getAlbumId() {
return $this
->get('album_id')->target_id;
}