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