public function JuiceboxGallery::setId in Juicebox HTML5 Responsive Image Galleries 8.3
Same name and namespace in other branches
- 8.2 src/JuiceboxGallery.php \Drupal\juicebox\JuiceboxGallery::setId()
Setter method for the gallery ID (if was not passed in constructor).
Parameters
string $value: The gallery id value to set.
bool $reset: Whether-or-not to reset the current value if it is already set.
Return value
bool Returns TRUE on successful update and FALSE if update not performed.
Overrides JuiceboxGalleryInterface::setId
File
- src/
JuiceboxGallery.php, line 72
Class
- JuiceboxGallery
- Class to generate the script and markup for a Juicebox gallery.
Namespace
Drupal\juiceboxCode
public function setId($value, $reset = TRUE) {
if ($reset || empty($this->id)) {
$this->id = $value;
return TRUE;
}
return FALSE;
}