FieldEscKey.php in Lightgallery 8
File
src/Field/FieldEscKey.php
View source
<?php
namespace Drupal\lightgallery\Field;
use Drupal\lightgallery\Group\GroupLightgalleryCore;
class FieldEscKey extends FieldBase {
protected function setName() {
return 'esc_key';
}
protected function setTitle() {
return 'Escape key';
}
protected function setType() {
return FieldTypesEnum::CHECKBOX;
}
protected function setDescription() {
return 'Whether the LightGallery could be closed by pressing the "Esc" key.';
}
protected function setGroup() {
return new GroupLightgalleryCore();
}
}