public function SlickForm::getOptionsRequiredByTemplate in Slick Carousel 8.2
Defines options required by theme_slick(), used with optimized option.
1 call to SlickForm::getOptionsRequiredByTemplate()
- SlickForm::submitForm in slick_ui/
src/ Form/ SlickForm.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/ SlickForm.php, line 892
Class
- SlickForm
- Extends base form for slick instance configuration form.
Namespace
Drupal\slick_ui\FormCode
public function getOptionsRequiredByTemplate() {
$options = [
'lazyLoad' => 'ondemand',
'slidesToShow' => 1,
];
$this->manager
->getModuleHandler()
->alter('slick_options_required_by_template', $options);
return $options;
}