FieldClosable.php in Lightgallery 8
File
src/Field/FieldClosable.php
View source
<?php
namespace Drupal\lightgallery\Field;
use Drupal\lightgallery\Group\GroupLightgalleryCore;
class FieldClosable extends FieldBase {
protected function setName() {
return 'closable';
}
protected function setTitle() {
return 'Closable';
}
protected function setType() {
return FieldTypesEnum::CHECKBOX;
}
protected function setDescription() {
return 'Allows clicks on dimmer to close gallery.';
}
protected function setGroup() {
return new GroupLightgalleryCore();
}
}