FieldKeyPress.php in Lightgallery 8
File
src/Field/FieldKeyPress.php
View source
<?php
namespace Drupal\lightgallery\Field;
use Drupal\lightgallery\Group\GroupLightgalleryCore;
class FieldKeyPress extends FieldBase {
protected function setName() {
return 'key_press';
}
protected function setTitle() {
return 'Keyboard';
}
protected function setType() {
return FieldTypesEnum::CHECKBOX;
}
protected function setDescription() {
return 'Enable keyboard navigation.';
}
protected function setGroup() {
return new GroupLightgalleryCore();
}
}