You are here

public function RangeSliderTrait::getOrientationOptions in Range Slider 8

Get orientation options.

1 call to RangeSliderTrait::getOrientationOptions()
RangeSliderWidget::settingsForm in src/Plugin/Field/FieldWidget/RangeSliderWidget.php
Returns a form to configure settings for the widget.

File

src/RangeSliderTrait.php, line 17

Class

RangeSliderTrait
Class RangeSliderTrait.

Namespace

Drupal\range_slider

Code

public function getOrientationOptions() {
  return [
    'horizontal' => $this
      ->t('Horizontal'),
    'vertical' => $this
      ->t('Vertical'),
  ];
}