You are here

public function SlickFormBase::getOptionsRequiredByTemplate in Slick Carousel 7.3

Same name and namespace in other branches
  1. 8 slick_ui/src/Form/SlickFormBase.php \Drupal\slick_ui\Form\SlickFormBase::getOptionsRequiredByTemplate()

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

1 call to SlickFormBase::getOptionsRequiredByTemplate()
SlickForm::edit_form_submit in slick_ui/src/Form/SlickForm.php
Handle the submission of the edit form.

File

slick_ui/src/Form/SlickFormBase.php, line 190

Class

SlickFormBase
Provides base form for a slick instance configuration form.

Namespace

Drupal\slick_ui\Form

Code

public function getOptionsRequiredByTemplate() {
  $options = [
    'lazyLoad' => 'ondemand',
    'slidesToShow' => 1,
  ];
  drupal_alter('slick_options_required_by_template', $options);
  return $options;
}