FieldThumbHeight.php in Lightgallery 8
File
src/Field/FieldThumbHeight.php
View source
<?php
namespace Drupal\lightgallery\Field;
use Drupal\lightgallery\Group\GroupLightgalleryThumbs;
class FieldThumbHeight extends FieldBase {
protected function setDefaultValue() {
return 100;
}
protected function setName() {
return 'thumb_cont_height';
}
protected function setTitle() {
return 'Height';
}
protected function setType() {
return FieldTypesEnum::TEXTFIELD;
}
protected function setDescription() {
return 'Height of the thumbnail container including padding and border.';
}
protected function setGroup() {
return new GroupLightgalleryThumbs();
}
}