RangeSliderTrait.php in Range Slider 8
File
src/RangeSliderTrait.php
View source
<?php
namespace Drupal\range_slider;
use Drupal\Core\StringTranslation\StringTranslationTrait;
trait RangeSliderTrait {
use StringTranslationTrait;
public function getOrientationOptions() {
return [
'horizontal' => $this
->t('Horizontal'),
'vertical' => $this
->t('Vertical'),
];
}
public function getOutputOptions() {
return [
'below' => $this
->t('Below'),
'above' => $this
->t('Above'),
'left' => $this
->t('Left'),
'right' => $this
->t('Right'),
];
}
}