You are here

public static function Slick::defaultSettings in Slick Carousel 7.3

Same name and namespace in other branches
  1. 8 src/Entity/Slick.php \Drupal\slick\Entity\Slick::defaultSettings()

Returns available slick default options under group 'settings'.

Return value

array The default settings under options.

Overrides SlickBase::defaultSettings

7 calls to Slick::defaultSettings()
Slick::removeDefaultValues in src/Entity/Slick.php
Strip out options containing default values so to have real clean JSON.
Slick::typecast in src/Entity/Slick.php
Returns the typecast values.
SlickCrudTest::getOptions in tests/SlickCrudTest.test
Test configuration options.
SlickForm::edit_form_submit in slick_ui/src/Form/SlickForm.php
Handle the submission of the edit form.
SlickForm::getFormElements in slick_ui/src/Form/SlickForm.php
Defines available options for the main and responsive settings.

... See full list

File

src/Entity/Slick.php, line 97

Class

Slick
Defines the Slick configuration entity.

Namespace

Drupal\slick\Entity

Code

public static function defaultSettings() {
  if (!isset(static::$defaultSettings)) {
    static::$defaultSettings = [
      'mobileFirst' => FALSE,
      'asNavFor' => '',
      'accessibility' => TRUE,
      'adaptiveHeight' => FALSE,
      'autoplay' => FALSE,
      'autoplaySpeed' => 3000,
      'pauseOnHover' => TRUE,
      'pauseOnDotsHover' => FALSE,
      'arrows' => TRUE,
      'prevArrow' => 'Previous',
      'nextArrow' => 'Next',
      'downArrow' => FALSE,
      'downArrowTarget' => '',
      'downArrowOffset' => 0,
      'centerMode' => FALSE,
      'centerPadding' => '50px',
      'dots' => FALSE,
      'dotsClass' => 'slick-dots',
      'appendDots' => '$(element)',
      'draggable' => TRUE,
      'fade' => FALSE,
      'focusOnSelect' => FALSE,
      'infinite' => TRUE,
      'initialSlide' => 0,
      'lazyLoad' => 'ondemand',
      'mouseWheel' => FALSE,
      'randomize' => FALSE,
      'respondTo' => 'window',
      'rows' => 1,
      'slidesPerRow' => 1,
      'slide' => '',
      'slidesToShow' => 1,
      'slidesToScroll' => 1,
      'speed' => 500,
      'swipe' => TRUE,
      'swipeToSlide' => FALSE,
      'edgeFriction' => 0.35,
      'touchMove' => TRUE,
      'touchThreshold' => 5,
      'useCSS' => TRUE,
      'cssEase' => 'ease',
      'cssEaseBezier' => '',
      'cssEaseOverride' => '',
      'useTransform' => TRUE,
      'easing' => 'linear',
      'variableWidth' => FALSE,
      'vertical' => FALSE,
      'verticalSwiping' => FALSE,
      'waitForAnimate' => TRUE,
    ];
  }
  return static::$defaultSettings;
}