You are here

class FieldImage in Lightgallery 8

Field image.

Hierarchy

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\Field
View 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

Namesort descending Modifiers Type Description Overrides
FieldBase::$defaultValue protected property
FieldBase::$description protected property
FieldBase::$group protected property
FieldBase::$isRequired protected property
FieldBase::$name protected property
FieldBase::$options protected property
FieldBase::$title protected property
FieldBase::$type protected property
FieldBase::appliesToViews public function Returns where the field has to be rendered in view settings. Overrides FieldInterface::appliesToViews 3
FieldBase::getDefaultValue public function Returns field default value. Overrides FieldInterface::getDefaultValue
FieldBase::getDescription public function Returns field description. Overrides FieldInterface::getDescription
FieldBase::getGroup public function Returns field group (parent). Overrides FieldInterface::getGroup
FieldBase::getName public function Returns field name. Overrides FieldInterface::getName
FieldBase::getOptions public function Returns field options callback. Overrides FieldInterface::getOptions
FieldBase::getTitle public function Returns field title. Overrides FieldInterface::getTitle
FieldBase::getType public function Returns field type. Overrides FieldInterface::getType
FieldBase::isRequired public function Returns if field is required. Overrides FieldInterface::isRequired
FieldBase::__construct public function
FieldImage::appliesToFieldFormatter public function Returns where the field has to be rendered in field formatter settings. Overrides FieldBase::appliesToFieldFormatter
FieldImage::setDefaultValue protected function Sets default value. Overrides FieldBase::setDefaultValue
FieldImage::setDescription protected function Sets description. Overrides FieldBase::setDescription
FieldImage::setGroup protected function Sets group. Overrides FieldBase::setGroup
FieldImage::setIsRequired protected function Sets required flag. Overrides FieldBase::setIsRequired
FieldImage::setName protected function Sets name. Overrides FieldBase::setName
FieldImage::setOptions protected function Sets options. Overrides FieldBase::setOptions
FieldImage::setTitle protected function Sets title. Overrides FieldBase::setTitle
FieldImage::setType protected function Sets type. Overrides FieldBase::setType