FieldDrag.php in Lightgallery 8
File
src/Field/FieldDrag.php
View source
<?php
namespace Drupal\lightgallery\Field;
use Drupal\lightgallery\Group\GroupLightgalleryCore;
class FieldDrag extends FieldBase {
protected function setName() {
return 'drag';
}
protected function setTitle() {
return 'Drag';
}
protected function setType() {
return FieldTypesEnum::CHECKBOX;
}
protected function setDescription() {
return 'Enables desktop mouse drag support.';
}
protected function setGroup() {
return new GroupLightgalleryCore();
}
}