FieldDownload.php in Lightgallery 8
File
src/Field/FieldDownload.php
View source
<?php
namespace Drupal\lightgallery\Field;
use Drupal\lightgallery\Group\GroupLightgalleryCore;
class FieldDownload extends FieldBase {
protected function setName() {
return 'download';
}
protected function setTitle() {
return 'Download';
}
protected function setType() {
return FieldTypesEnum::CHECKBOX;
}
protected function setDescription() {
return 'Enable download button. ' . 'By default download url will be taken from data-src/href attribute but it supports only for modern browsers.';
}
protected function setGroup() {
return new GroupLightgalleryCore();
}
}