FieldPause.php in Lightgallery 8
File
src/Field/FieldPause.php
View source
<?php
namespace Drupal\lightgallery\Field;
use Drupal\lightgallery\Group\GroupLightgalleryAutoplay;
class FieldPause extends FieldBase {
protected function setDefaultValue() {
return 5000;
}
protected function setName() {
return 'pause';
}
protected function setTitle() {
return 'Pause';
}
protected function setType() {
return FieldTypesEnum::TEXTFIELD;
}
protected function setDescription() {
return 'The time (in ms) between each auto transition.';
}
protected function setGroup() {
return new GroupLightgalleryAutoplay();
}
}