FieldCurrentPagerPosition.php in Lightgallery 8
File
src/Field/FieldCurrentPagerPosition.php
View source
<?php
namespace Drupal\lightgallery\Field;
use Drupal\lightgallery\Group\GroupLightgalleryThumbs;
class FieldCurrentPagerPosition extends FieldBase {
protected function setDefaultValue() {
return 'middle';
}
protected function setOptions() {
return [
'Drupal\\lightgallery\\Manager\\LightgalleryManager',
'getCurrentPagerPositionOptions',
];
}
protected function setName() {
return 'current_pager_position';
}
protected function setTitle() {
return 'Position';
}
protected function setType() {
return FieldTypesEnum::SELECT;
}
protected function setDescription() {
return 'Position of selected thumbnail.';
}
protected function setGroup() {
return new GroupLightgalleryThumbs();
}
}