class FieldUseThumbs in Lightgallery 8
Field use thumbs.
Hierarchy
- class \Drupal\lightgallery\Field\FieldBase implements FieldInterface
- class \Drupal\lightgallery\Field\FieldUseThumbs
Expanded class hierarchy of FieldUseThumbs
3 files declare their use of FieldUseThumbs
- GroupLightgalleryThumbs.php in src/
Group/ GroupLightgalleryThumbs.php - LightgalleryFormatter.php in src/
Plugin/ Field/ FieldFormatter/ LightgalleryFormatter.php - LightgalleryManager.php in src/
Manager/ LightgalleryManager.php
File
- src/
Field/ FieldUseThumbs.php, line 10
Namespace
Drupal\lightgallery\FieldView source
class FieldUseThumbs extends FieldBase {
/**
* {@inheritdoc}
*/
protected function setName() {
return 'thumbnails';
}
/**
* {@inheritdoc}
*/
protected function setTitle() {
return 'Use thumbnails';
}
/**
* {@inheritdoc}
*/
protected function setType() {
return FieldTypesEnum::CHECKBOX;
}
/**
* {@inheritdoc}
*/
protected function setDescription() {
return 'Indicate if you want to use thumbnails in the LightGallery.';
}
/**
* {@inheritdoc}
*/
protected function setGroup() {
return new GroupLightgalleryThumbs();
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FieldBase:: |
protected | property | ||
FieldBase:: |
protected | property | ||
FieldBase:: |
protected | property | ||
FieldBase:: |
protected | property | ||
FieldBase:: |
protected | property | ||
FieldBase:: |
protected | property | ||
FieldBase:: |
protected | property | ||
FieldBase:: |
protected | property | ||
FieldBase:: |
public | function |
Returns where the field has to be rendered in field formatter settings. Overrides FieldInterface:: |
3 |
FieldBase:: |
public | function |
Returns where the field has to be rendered in view settings. Overrides FieldInterface:: |
3 |
FieldBase:: |
public | function |
Returns field default value. Overrides FieldInterface:: |
|
FieldBase:: |
public | function |
Returns field description. Overrides FieldInterface:: |
|
FieldBase:: |
public | function |
Returns field group (parent). Overrides FieldInterface:: |
|
FieldBase:: |
public | function |
Returns field name. Overrides FieldInterface:: |
|
FieldBase:: |
public | function |
Returns field options callback. Overrides FieldInterface:: |
|
FieldBase:: |
public | function |
Returns field title. Overrides FieldInterface:: |
|
FieldBase:: |
public | function |
Returns field type. Overrides FieldInterface:: |
|
FieldBase:: |
public | function |
Returns if field is required. Overrides FieldInterface:: |
|
FieldBase:: |
protected | function | Sets default value. | 14 |
FieldBase:: |
protected | function | Sets required flag. | 2 |
FieldBase:: |
protected | function | Sets options. | 10 |
FieldBase:: |
public | function | ||
FieldUseThumbs:: |
protected | function |
Sets description. Overrides FieldBase:: |
|
FieldUseThumbs:: |
protected | function |
Sets group. Overrides FieldBase:: |
|
FieldUseThumbs:: |
protected | function |
Sets name. Overrides FieldBase:: |
|
FieldUseThumbs:: |
protected | function |
Sets title. Overrides FieldBase:: |
|
FieldUseThumbs:: |
protected | function |
Sets type. Overrides FieldBase:: |