class FieldPreload in Lightgallery 8
Field pre load.
Hierarchy
- class \Drupal\lightgallery\Field\FieldBase implements FieldInterface
- class \Drupal\lightgallery\Field\FieldPreload
Expanded class hierarchy of FieldPreload
1 file declares its use of FieldPreload
- LightgalleryManager.php in src/
Manager/ LightgalleryManager.php
File
- src/
Field/ FieldPreload.php, line 10
Namespace
Drupal\lightgallery\FieldView source
class FieldPreload extends FieldBase {
/**
* {@inheritdoc}
*/
protected function setDefaultValue() {
return NULL;
}
/**
* {@inheritdoc}
*/
protected function setOptions() {
return [
'Drupal\\lightgallery\\Manager\\LightgalleryManager',
'getPreloadOptions',
];
}
/**
* {@inheritdoc}
*/
protected function setName() {
return 'preload';
}
/**
* {@inheritdoc}
*/
protected function setTitle() {
return 'Preload';
}
/**
* {@inheritdoc}
*/
protected function setType() {
return FieldTypesEnum::SELECT;
}
/**
* {@inheritdoc}
*/
protected function setDescription() {
return 'number of preload slides. will exicute only after the current slide is fully loaded. ' . 'ex:// you clicked on 4th image and if preload = 1 then 3rd slide and 5th slide will be loaded in the background after the 4th slide is fully loaded. ' . 'If preload is 2 then 2nd 3rd 5th 6th slides will be preloaded.';
}
/**
* {@inheritdoc}
*/
protected function setGroup() {
return new GroupLightgalleryCore();
}
}
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 required flag. | 2 |
FieldBase:: |
public | function | ||
FieldPreload:: |
protected | function |
Sets default value. Overrides FieldBase:: |
|
FieldPreload:: |
protected | function |
Sets description. Overrides FieldBase:: |
|
FieldPreload:: |
protected | function |
Sets group. Overrides FieldBase:: |
|
FieldPreload:: |
protected | function |
Sets name. Overrides FieldBase:: |
|
FieldPreload:: |
protected | function |
Sets options. Overrides FieldBase:: |
|
FieldPreload:: |
protected | function |
Sets title. Overrides FieldBase:: |
|
FieldPreload:: |
protected | function |
Sets type. Overrides FieldBase:: |