FieldUseThumbs.php in Lightgallery 8
File
src/Field/FieldUseThumbs.php
View source
<?php
namespace Drupal\lightgallery\Field;
use Drupal\lightgallery\Group\GroupLightgalleryThumbs;
class FieldUseThumbs extends FieldBase {
protected function setName() {
return 'thumbnails';
}
protected function setTitle() {
return 'Use thumbnails';
}
protected function setType() {
return FieldTypesEnum::CHECKBOX;
}
protected function setDescription() {
return 'Indicate if you want to use thumbnails in the LightGallery.';
}
protected function setGroup() {
return new GroupLightgalleryThumbs();
}
}