FieldLightgalleryImageStyle.php in Lightgallery 8
File
src/Field/FieldLightgalleryImageStyle.php
View source
<?php
namespace Drupal\lightgallery\Field;
use Drupal\lightgallery\Group\GroupLightgalleryCore;
class FieldLightgalleryImageStyle extends FieldBase {
public function appliesToViews() {
return FALSE;
}
protected function setDefaultValue() {
return NULL;
}
protected function setOptions() {
return [
'Drupal\\lightgallery\\Manager\\LightgalleryManager',
'getImageStyles',
];
}
protected function setName() {
return 'lightgallery_image_style';
}
protected function setTitle() {
return 'Lightgallery image style';
}
protected function setType() {
return FieldTypesEnum::SELECT;
}
protected function setDescription() {
return 'The image style used when viewing the lightgallery.';
}
protected function setGroup() {
return new GroupLightgalleryCore();
}
}