You are here

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

File

modules/pm_board/src/Entity/BoardType.php
View source
<?php

namespace Drupal\pm_board\Entity;

use Drupal\Core\Config\Entity\ConfigEntityBundleBase;

/**
 * Defines the Board type entity.
 *
 * @ConfigEntityType(
 *   id = "pm_board_type",
 *   label = @Translation("Board type"),
 *   handlers = {
 *     "view_builder" = "Drupal\Core\Entity\EntityViewBuilder",
 *     "list_builder" = "Drupal\pm_board\BoardTypeListBuilder",
 *     "form" = {
 *       "add" = "Drupal\pm_board\Form\BoardTypeForm",
 *       "edit" = "Drupal\pm_board\Form\BoardTypeForm",
 *       "delete" = "Drupal\pm_board\Form\BoardTypeDeleteForm"
 *     },
 *     "route_provider" = {
 *       "html" = "Drupal\pm_board\BoardTypeHtmlRouteProvider",
 *     },
 *   },
 *   config_prefix = "pm_board_type",
 *   admin_permission = "administer site configuration",
 *   bundle_of = "pm_board",
 *   entity_keys = {
 *     "id" = "id",
 *     "label" = "label",
 *     "uuid" = "uuid"
 *   },
 *   links = {
 *     "canonical" = "/admin/structure/pm_board_type/{pm_board_type}",
 *     "add-form" = "/admin/structure/pm_board_type/add",
 *     "edit-form" = "/admin/structure/pm_board_type/{pm_board_type}/edit",
 *     "delete-form" = "/admin/structure/pm_board_type/{pm_board_type}/delete",
 *     "collection" = "/admin/structure/pm_board_type"
 *   }
 * )
 */
class BoardType extends ConfigEntityBundleBase implements BoardTypeInterface {

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

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

}

Classes

Namesort descending Description
BoardType Defines the Board type entity.