You are here

public function SlickAdmin::getOverridableOptions in Slick Carousel 8

Same name and namespace in other branches
  1. 8.2 src/Form/SlickAdmin.php \Drupal\slick\Form\SlickAdmin::getOverridableOptions()
  2. 7.3 src/Form/SlickAdmin.php \Drupal\slick\Form\SlickAdmin::getOverridableOptions()

Returns overridable options to re-use one optionset.

1 call to SlickAdmin::getOverridableOptions()
SlickAdmin::closingForm in src/Form/SlickAdmin.php
Returns the closing ending form elements.

File

src/Form/SlickAdmin.php, line 351

Class

SlickAdmin
Provides resusable admin functions, or form elements.

Namespace

Drupal\slick\Form

Code

public function getOverridableOptions() {
  $options = [
    'arrows' => $this
      ->t('Arrows'),
    'autoplay' => $this
      ->t('Autoplay'),
    'dots' => $this
      ->t('Dots'),
    'draggable' => $this
      ->t('Draggable'),
    'infinite' => $this
      ->t('Infinite'),
    'mouseWheel' => $this
      ->t('Mousewheel'),
    'randomize' => $this
      ->t('Randomize'),
    'variableWidth' => $this
      ->t('Variable width'),
  ];
  $this->manager
    ->getModuleHandler()
    ->alter('slick_overridable_options_info', $options);
  return $options;
}