public function PhotosAlbum::__construct in Album Photos 8.5
Same name and namespace in other branches
- 8.4 src/PhotosAlbum.php \Drupal\photos\PhotosAlbum::__construct()
- 6.0.x src/PhotosAlbum.php \Drupal\photos\PhotosAlbum::__construct()
Constructs a PhotosAlbum object.
Parameters
int $nid: Album ID {node}.nid.
File
- src/
PhotosAlbum.php, line 35
Class
- PhotosAlbum
- Create an album object.
Namespace
Drupal\photosCode
public function __construct($nid) {
$this->albumId = $nid;
}