FieldProgress.php in Lightgallery 8
File
src/Field/FieldProgress.php
View source
<?php
namespace Drupal\lightgallery\Field;
use Drupal\lightgallery\Group\GroupLightgalleryAutoplay;
class FieldProgress extends FieldBase {
protected function setName() {
return 'progress_bar';
}
protected function setTitle() {
return 'Progress bar';
}
protected function setType() {
return FieldTypesEnum::CHECKBOX;
}
protected function setDescription() {
return 'Enable/Disable autoplay progress bar.';
}
protected function setGroup() {
return new GroupLightgalleryAutoplay();
}
}