public function JuiceboxGallery::getChecksum in Juicebox HTML5 Responsive Image Galleries 8.3
Same name and namespace in other branches
- 8.2 src/JuiceboxGallery.php \Drupal\juicebox\JuiceboxGallery::getChecksum()
Get a gallery checksum.
Return value
string An md5 hash of the image and option data that can be used to validate the uniqueness of this gallery's data and settings.
Overrides JuiceboxGalleryInterface::getChecksum
File
- src/
JuiceboxGallery.php, line 210
Class
- JuiceboxGallery
- Class to generate the script and markup for a Juicebox gallery.
Namespace
Drupal\juiceboxCode
public function getChecksum() {
return md5(json_encode($this->images) . json_encode($this->options));
}