FieldLoop.php in Lightgallery 8
File
src/Field/FieldLoop.php
View source
<?php
namespace Drupal\lightgallery\Field;
use Drupal\lightgallery\Group\GroupLightgalleryCore;
class FieldLoop extends FieldBase {
protected function setName() {
return 'loop';
}
protected function setTitle() {
return 'Loop';
}
protected function setType() {
return FieldTypesEnum::CHECKBOX;
}
protected function setDescription() {
return 'If not selected, the ability to loop back to the beginning of the gallery when on the last element, will be disabled.';
}
protected function setGroup() {
return new GroupLightgalleryCore();
}
}