You are here

TextField.php in Apache Solr Config Generator 8

File

src/Entity/TextField.php
View source
<?php

/**
 * @file
 * Contains Drupal\apachesolr_confgen\Entity\TextField.
 */
namespace Drupal\apachesolr_confgen\Entity;

use Drupal\Core\Config\Entity\ConfigEntityBase;
use Drupal\apachesolr_confgen\TextFieldInterface;

/**
 * Defines the TextField entity.
 *
 * @ConfigEntityType(
 *   id = "solr_text_field",
 *   label = @Translation("TextField"),
 *   handlers = {
 *     "list_builder" = "Drupal\apachesolr_confgen\Controller\TextFieldListBuilder",
 *     "form" = {
 *       "add" = "Drupal\apachesolr_confgen\Form\TextFieldForm",
 *       "edit" = "Drupal\apachesolr_confgen\Form\TextFieldForm",
 *       "delete" = "Drupal\apachesolr_confgen\Form\TextFieldDeleteForm"
 *     }
 *   },
 *   config_prefix = "solr_text_field",
 *   admin_permission = "administer site configuration",
 *   entity_keys = {
 *     "id" = "id",
 *     "label" = "label",
 *     "uuid" = "uuid"
 *   },
 *   links = {
 *     "edit-form" = "entity.solr_text_field.edit_form",
 *     "delete-form" = "entity.solr_text_field.delete_form",
 *     "collection" = "entity.solr_text_field.collection"
 *   }
 * )
 */
class TextField extends ConfigEntityBase implements TextFieldInterface {

  /**
   * The TextField ID.
   *
   * @var string
   */
  protected $id;

  /**
   * The TextField label.
   *
   * @var string
   */
  protected $label;

}

Classes

Namesort descending Description
TextField Defines the TextField entity.