You are here

public function SlickForm::getLazyloadOptions in Slick Carousel 8.2

Same name and namespace in other branches
  1. 8 slick_ui/src/Form/SlickForm.php \Drupal\slick_ui\Form\SlickForm::getLazyloadOptions()
  2. 7.3 slick_ui/src/Form/SlickForm.php \Drupal\slick_ui\Form\SlickForm::getLazyloadOptions()

Returns modifiable lazyload options.

1 call to SlickForm::getLazyloadOptions()
SlickForm::getFormElements in slick_ui/src/Form/SlickForm.php
Defines available options for the main and responsive settings.

File

slick_ui/src/Form/SlickForm.php, line 877

Class

SlickForm
Extends base form for slick instance configuration form.

Namespace

Drupal\slick_ui\Form

Code

public function getLazyloadOptions() {
  $options = [
    'anticipated' => $this
      ->t('Anticipated'),
    'blazy' => $this
      ->t('Blazy'),
    'ondemand' => $this
      ->t('On demand'),
    'progressive' => $this
      ->t('Progressive'),
  ];
  $this->manager
    ->getModuleHandler()
    ->alter('slick_lazyload_options_info', $options);
  return $options;
}