You are here

TextFile.php in Apache Solr Config Generator 8

File

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

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

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

/**
 * Defines the TextFile entity.
 *
 * @ConfigEntityType(
 *   id = "solr_text_file",
 *   label = @Translation("TextFile"),
 *   handlers = {
 *     "list_builder" = "Drupal\apachesolr_confgen\Controller\TextFileListBuilder",
 *     "form" = {
 *       "add" = "Drupal\apachesolr_confgen\Form\TextFileForm",
 *       "edit" = "Drupal\apachesolr_confgen\Form\TextFileForm",
 *       "delete" = "Drupal\apachesolr_confgen\Form\TextFileDeleteForm"
 *     }
 *   },
 *   config_prefix = "solr_text_file",
 *   admin_permission = "administer site configuration",
 *   entity_keys = {
 *     "id" = "id",
 *     "label" = "label",
 *     "uuid" = "uuid"
 *   },
 *   links = {
 *     "edit-form" = "entity.solr_text_file.edit_form",
 *     "delete-form" = "entity.solr_text_file.delete_form",
 *     "collection" = "entity.solr_text_file.collection"
 *   }
 * )
 */
class TextFile extends ConfigEntityBase implements TextFileInterface {

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

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

}

Classes

Namesort descending Description
TextFile Defines the TextFile entity.