Board.php in Drupal PM (Project Management) 4.x
Namespace
Drupal\pm_board\EntityFile
modules/pm_board/src/Entity/Board.phpView source
<?php
namespace Drupal\pm_board\Entity;
use Drupal\Core\Entity\EntityStorageInterface;
use Drupal\Core\Field\BaseFieldDefinition;
use Drupal\Core\Entity\ContentEntityBase;
use Drupal\Core\Entity\EntityChangedTrait;
use Drupal\Core\Entity\EntityTypeInterface;
use Drupal\pm_project\Entity\WorkableItem;
use Drupal\pm_project\Entity\ProjectTrait;
use Drupal\user\UserInterface;
/**
* Defines the Board entity.
*
* @ingroup pm_board
*
* @ContentEntityType(
* id = "pm_board",
* label = @Translation("Board"),
* bundle_label = @Translation("Board type"),
* handlers = {
* "view_builder" = "Drupal\Core\Entity\EntityViewBuilder",
* "list_builder" = "Drupal\pm_board\BoardListBuilder",
* "views_data" = "Drupal\pm_board\Entity\BoardViewsData",
*
* "form" = {
* "default" = "Drupal\pm_board\Form\BoardForm",
* "add" = "Drupal\pm_board\Form\BoardForm",
* "edit" = "Drupal\pm_board\Form\BoardForm",
* "delete" = "Drupal\pm_board\Form\BoardDeleteForm",
* },
* "route_provider" = {
* "html" = "Drupal\pm_board\BoardHtmlRouteProvider",
* },
* "access" = "Drupal\pm_board\BoardAccessControlHandler",
* },
* base_table = "pm_board",
* translatable = FALSE,
* permission_granularity = "bundle",
* admin_permission = "administer board entities",
* entity_keys = {
* "id" = "id",
* "bundle" = "type",
* "label" = "name",
* "uuid" = "uuid",
* "uid" = "user_id",
* "langcode" = "langcode",
* },
* links = {
* "canonical" = "/pm/board/{pm_board}",
* "add-page" = "/pm/board/add",
* "add-form" = "/pm/board/add/{pm_board_type}",
* "edit-form" = "/pm/board/{pm_board}/edit",
* "delete-form" = "/pm/board/{pm_board}/delete",
* "collection" = "/pm/board",
* },
* bundle_entity_type = "pm_board_type",
* field_ui_base_route = "entity.pm_board_type.edit_form"
* )
*/
class Board extends WorkableItem implements BoardInterface {
}