<?php

namespace Drupal\{{ machine_name }}\Entity;

{% sort %}
use Drupal\Core\Config\Entity\ConfigEntityBase;
use Drupal\{{ machine_name }}\{{ class_prefix }}Interface;
{% endsort %}

/**
 * Defines the {{ entity_type_label|lower }} entity type.
 *
 * @ConfigEntityType(
 *   id = "{{ entity_type_id }}",
 *   label = @Translation("{{ entity_type_label }}"),
 *   label_collection = @Translation("{{ entity_type_label|plural }}"),
 *   label_singular = @Translation("{{ entity_type_label|lower }}"),
 *   label_plural = @Translation("{{ entity_type_label|plural|lower }}"),
 *   label_count = @PluralTranslation(
 *     singular = "@count {{ entity_type_label|lower }}",
 *     plural = "@count {{ entity_type_label|plural|lower }}",
 *   ),
 *   handlers = {
 *     "list_builder" = "Drupal\{{ machine_name }}\{{ class_prefix }}ListBuilder",
 *     "form" = {
 *       "add" = "Drupal\{{ machine_name }}\Form\{{ class_prefix }}Form",
 *       "edit" = "Drupal\{{ machine_name }}\Form\{{ class_prefix }}Form",
 *       "delete" = "Drupal\Core\Entity\EntityDeleteForm"
 *     }
 *   },
 *   config_prefix = "{{ entity_type_id }}",
 *   admin_permission = "administer {{ entity_type_id }}",
 *   links = {
 *     "collection" = "/admin/structure/{{ entity_type_id|u2h }}",
 *     "add-form" = "/admin/structure/{{ entity_type_id|u2h }}/add",
 *     "edit-form" = "/admin/structure/{{ entity_type_id|u2h }}/{{ '{' }}{{ entity_type_id }}{{ '}' }}",
 *     "delete-form" = "/admin/structure/{{ entity_type_id|u2h }}/{{ '{' }}{{ entity_type_id }}{{ '}' }}/delete"
 *   },
 *   entity_keys = {
 *     "id" = "id",
 *     "label" = "label",
 *     "uuid" = "uuid"
 *   },
 *   config_export = {
 *     "id",
 *     "label",
 *     "description"
 *   }
 * )
 */
class {{ class_prefix }} extends ConfigEntityBase implements {{ class_prefix }}Interface {

  /**
   * The {{ entity_type_label|lower }} ID.
   *
   * @var string
   */
  protected $id;

  /**
   * The {{ entity_type_label|lower }} label.
   *
   * @var string
   */
  protected $label;

  /**
   * The {{ entity_type_label|lower }} status.
   *
   * @var bool
   */
  protected $status;

  /**
   * The {{ entity_type_id|lower }} description.
   *
   * @var string
   */
  protected $description;

}
