You are here

FieldKeyPress.php in Lightgallery 8

File

src/Field/FieldKeyPress.php
View source
<?php

namespace Drupal\lightgallery\Field;

use Drupal\lightgallery\Group\GroupLightgalleryCore;

/**
 * Field key press.
 */
class FieldKeyPress extends FieldBase {

  /**
   * {@inheritdoc}
   */
  protected function setName() {
    return 'key_press';
  }

  /**
   * {@inheritdoc}
   */
  protected function setTitle() {
    return 'Keyboard';
  }

  /**
   * {@inheritdoc}
   */
  protected function setType() {
    return FieldTypesEnum::CHECKBOX;
  }

  /**
   * {@inheritdoc}
   */
  protected function setDescription() {
    return 'Enable keyboard navigation.';
  }

  /**
   * {@inheritdoc}
   */
  protected function setGroup() {
    return new GroupLightgalleryCore();
  }

}

Classes

Namesort descending Description
FieldKeyPress Field key press.