FieldHash.php in Lightgallery 8
File
src/Field/FieldHash.php
View source
<?php
namespace Drupal\lightgallery\Field;
use Drupal\lightgallery\Group\GroupLightgalleryHash;
class FieldHash extends FieldBase {
protected function setName() {
return 'hash';
}
protected function setTitle() {
return 'Hash';
}
protected function setType() {
return FieldTypesEnum::CHECKBOX;
}
protected function setDescription() {
return 'Enable/Disable hash option.';
}
protected function setGroup() {
return new GroupLightgalleryHash();
}
}