You are here

NoteType.php in Drupal PM (Project Management) 4.x

File

modules/pm_note/src/Entity/NoteType.php
View source
<?php

namespace Drupal\pm_note\Entity;

use Drupal\Core\Config\Entity\ConfigEntityBundleBase;

/**
 * Defines the Note type entity.
 *
 * @ConfigEntityType(
 *   id = "pm_note_type",
 *   label = @Translation("Note type"),
 *   handlers = {
 *     "view_builder" = "Drupal\Core\Entity\EntityViewBuilder",
 *     "list_builder" = "Drupal\pm_note\NoteTypeListBuilder",
 *     "form" = {
 *       "add" = "Drupal\pm_note\Form\NoteTypeForm",
 *       "edit" = "Drupal\pm_note\Form\NoteTypeForm",
 *       "delete" = "Drupal\pm_note\Form\NoteTypeDeleteForm"
 *     },
 *     "route_provider" = {
 *       "html" = "Drupal\pm_note\NoteTypeHtmlRouteProvider",
 *     },
 *   },
 *   config_prefix = "pm_note_type",
 *   admin_permission = "administer site configuration",
 *   bundle_of = "pm_note",
 *   entity_keys = {
 *     "id" = "id",
 *     "label" = "label",
 *     "uuid" = "uuid"
 *   },
 *   links = {
 *     "canonical" = "/admin/structure/pm_note_type/{pm_note_type}",
 *     "add-form" = "/admin/structure/pm_note_type/add",
 *     "edit-form" = "/admin/structure/pm_note_type/{pm_note_type}/edit",
 *     "delete-form" = "/admin/structure/pm_note_type/{pm_note_type}/delete",
 *     "collection" = "/admin/structure/pm_note_type"
 *   }
 * )
 */
class NoteType extends ConfigEntityBundleBase implements NoteTypeInterface {

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

  /**
   * The Note type label.
   *
   * @var string
   */
  protected $label;

}

Classes

Namesort descending Description
NoteType Defines the Note type entity.