public function PhotosAlbum::__construct in Album Photos 8.4
Same name and namespace in other branches
- 8.5 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 30
Class
- PhotosAlbum
- Create an album object.
Namespace
Drupal\photosCode
public function __construct($nid) {
$this->pid = $nid;
}