You are here

public function LightgalleryOptionset::__construct in Lightgallery 8

LightgalleryOptionset constructor.

Parameters

array $options: The options variable.

File

src/Optionset/LightgalleryOptionset.php, line 22

Class

LightgalleryOptionset
Light gallery option set.

Namespace

Drupal\lightgallery\Optionset

Code

public function __construct(array $options) {
  $this->options = $options;
  if ($this->options['thumbnails']) {
    $this->useThumbs = TRUE;
  }
  if ($this->options['autoplay']) {
    $this->autoplay = TRUE;
  }
  if ($this->options['zoom']) {
    $this->zoom = TRUE;
  }
  if ($this->options['hash']) {
    $this->hash = TRUE;
  }
}