You are here

public function JuiceboxGallery::getChecksum in Juicebox HTML5 Responsive Image Galleries 8.2

Same name and namespace in other branches
  1. 8.3 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 212

Class

JuiceboxGallery
Class to generate the script and markup for a Juicebox gallery.

Namespace

Drupal\juicebox

Code

public function getChecksum() {
  return md5(json_encode($this->images) . json_encode($this->options));
}