You are here

public static function Slick::jsSettings in Slick Carousel 8

Defines JS options required by theme_slick(), used with optimized option.

3 calls to Slick::jsSettings()
SlickCrudTest::testSlickCrud in tests/src/Kernel/SlickCrudTest.php
Tests CRUD operations for Slick optionsets.
SlickUnitTest::testSlickEntity in tests/src/Unit/SlickUnitTest.php
Tests for slick entity methods.
template_preprocess_slick in templates/slick.theme.inc
Prepares variables for slick.html.twig templates.

File

src/Entity/Slick.php, line 368

Class

Slick
Defines the Slick configuration entity.

Namespace

Drupal\slick\Entity

Code

public static function jsSettings() {
  return [
    'asNavFor' => '',
    'downArrowTarget' => '',
    'downArrowOffset' => '',
    'lazyLoad' => 'ondemand',
    'prevArrow' => 'Previous',
    'nextArrow' => 'Next',
    'rows' => 1,
    'slidesPerRow' => 1,
    'slide' => '',
    'slidesToShow' => 1,
    'vertical' => FALSE,
  ];
}