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