You are here

public function SliderPro::getOption in Slider Pro 8

Returns the value of a slider pro library option.

Parameters

string $name: The option name.

Return value

mixed The option value.

Overrides SliderProInterface::getOption

3 calls to SliderPro::getOption()
SliderPro::hasAutoPlay in src/Entity/SliderPro.php
Checks if option set has autoplay.
SliderPro::hasThumbnails in src/Entity/SliderPro.php
Checks if option set requires thumbnails.
SliderPro::toOptionSet in src/Entity/SliderPro.php
Returns an array formatted to use as JS option set.

File

src/Entity/SliderPro.php, line 82

Class

SliderPro
Defines the SliderPro entity.

Namespace

Drupal\slider_pro\Entity

Code

public function getOption($name) {
  return isset($this->options[$name]) ? $this->options[$name] : NULL;
}