FieldScale.php in Lightgallery 8
File
src/Field/FieldScale.php
View source
<?php
namespace Drupal\lightgallery\Field;
use Drupal\lightgallery\Group\GroupLightgalleryZoom;
class FieldScale extends FieldBase {
protected function setDefaultValue() {
return 1;
}
protected function setOptions() {
return [
'Drupal\\lightgallery\\Manager\\LightgalleryManager',
'getScaleOptions',
];
}
protected function setName() {
return 'scale';
}
protected function setTitle() {
return 'Scale';
}
protected function setType() {
return FieldTypesEnum::SELECT;
}
protected function setDescription() {
return 'Value of zoom that should be incremented/decremented.';
}
protected function setGroup() {
return new GroupLightgalleryZoom();
}
}