You are here

class FieldUseThumbs in Lightgallery 8

Field use thumbs.

Hierarchy

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

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::appliesToFieldFormatter public function Returns where the field has to be rendered in field formatter settings. Overrides FieldInterface::appliesToFieldFormatter 3
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::setDefaultValue protected function Sets default value. 14
FieldBase::setIsRequired protected function Sets required flag. 2
FieldBase::setOptions protected function Sets options. 10
FieldBase::__construct public function
FieldUseThumbs::setDescription protected function Sets description. Overrides FieldBase::setDescription
FieldUseThumbs::setGroup protected function Sets group. Overrides FieldBase::setGroup
FieldUseThumbs::setName protected function Sets name. Overrides FieldBase::setName
FieldUseThumbs::setTitle protected function Sets title. Overrides FieldBase::setTitle
FieldUseThumbs::setType protected function Sets type. Overrides FieldBase::setType