You are here

public function SlickFormBase::getOptionsRequiredByTemplate in Slick Carousel 8

Same name and namespace in other branches
  1. 7.3 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()
SlickFormBase::submitForm in slick_ui/src/Form/SlickFormBase.php
This is the default entity object builder function. It is called before any other submit handler to build the new entity object to be used by the following submit handlers. At this point of the form workflow the entity is validated and the form state…

File

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

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,
  ];
  $this->manager
    ->getModuleHandler()
    ->alter('slick_options_required_by_template', $options);
  return $options;
}