FieldThumbWidth.php in Lightgallery 8
File
src/Field/FieldThumbWidth.php
View source
<?php
namespace Drupal\lightgallery\Field;
use Drupal\lightgallery\Group\GroupLightgalleryThumbs;
class FieldThumbWidth extends FieldBase {
protected function setDefaultValue() {
return 100;
}
protected function setName() {
return 'thumb_width';
}
protected function setTitle() {
return 'Width';
}
protected function setType() {
return FieldTypesEnum::TEXTFIELD;
}
protected function setDescription() {
return 'Width of each thumbnail.';
}
protected function setGroup() {
return new GroupLightgalleryThumbs();
}
}