class FieldImage in Lightgallery 8
Field image.
Hierarchy
- class \Drupal\lightgallery\Field\FieldBase implements FieldInterface- class \Drupal\lightgallery\Field\FieldImage
 
Expanded class hierarchy of FieldImage
1 file declares its use of FieldImage
- LightgalleryManager.php in src/Manager/ LightgalleryManager.php 
File
- src/Field/ FieldImage.php, line 10 
Namespace
Drupal\lightgallery\FieldView source
class FieldImage extends FieldBase {
  /**
   * {@inheritdoc}
   */
  public function appliesToFieldFormatter() {
    return FALSE;
  }
  /**
   * {@inheritdoc}
   */
  protected function setIsRequired() {
    return TRUE;
  }
  /**
   * {@inheritdoc}
   */
  protected function setDefaultValue() {
    return NULL;
  }
  /**
   * {@inheritdoc}
   */
  protected function setOptions() {
    return [
      'Drupal\\lightgallery\\Plugin\\views\\style\\LightGallery',
      'getImageFields',
    ];
  }
  /**
   * {@inheritdoc}
   */
  protected function setName() {
    return 'image_field';
  }
  /**
   * {@inheritdoc}
   */
  protected function setTitle() {
    return 'Image field';
  }
  /**
   * {@inheritdoc}
   */
  protected function setType() {
    return FieldTypesEnum::SELECT;
  }
  /**
   * {@inheritdoc}
   */
  protected function setDescription() {
    return 'Select the field you want to use to display the images in the Lightgallery.';
  }
  /**
   * {@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 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:: | public | function | ||
| FieldImage:: | public | function | Returns where the field has to be rendered in field formatter settings. Overrides FieldBase:: | |
| FieldImage:: | protected | function | Sets default value. Overrides FieldBase:: | |
| FieldImage:: | protected | function | Sets description. Overrides FieldBase:: | |
| FieldImage:: | protected | function | Sets group. Overrides FieldBase:: | |
| FieldImage:: | protected | function | Sets required flag. Overrides FieldBase:: | |
| FieldImage:: | protected | function | Sets name. Overrides FieldBase:: | |
| FieldImage:: | protected | function | Sets options. Overrides FieldBase:: | |
| FieldImage:: | protected | function | Sets title. Overrides FieldBase:: | |
| FieldImage:: | protected | function | Sets type. Overrides FieldBase:: | 
