public function PhotosAlbum::__construct in Album Photos 6.0.x
Same name and namespace in other branches
- 8.5 src/PhotosAlbum.php \Drupal\photos\PhotosAlbum::__construct()
- 8.4 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;
}