You are here

public function SliderPro::hasAutoPlay in Slider Pro 8

Checks if option set has autoplay.

Return value

bool

Overrides SliderProInterface::hasAutoPlay

1 call to SliderPro::hasAutoPlay()
SliderPro::toOptionSet in src/Entity/SliderPro.php
Returns an array formatted to use as JS option set.

File

src/Entity/SliderPro.php, line 96

Class

SliderPro
Defines the SliderPro entity.

Namespace

Drupal\slider_pro\Entity

Code

public function hasAutoPlay() {
  return !empty($this
    ->getOption('autoplay'));
}