FieldCounter.php in Lightgallery 8
File
src/Field/FieldCounter.php
View source
<?php
namespace Drupal\lightgallery\Field;
use Drupal\lightgallery\Group\GroupLightgalleryCore;
class FieldCounter extends FieldBase {
protected function setName() {
return 'counter';
}
protected function setTitle() {
return 'Counter';
}
protected function setType() {
return FieldTypesEnum::CHECKBOX;
}
protected function setDescription() {
return 'Whether to show total number of images and index number of currently displayed image.';
}
protected function setGroup() {
return new GroupLightgalleryCore();
}
}