TaskType.php in General Data Protection Regulation 8
Same filename and directory in other branches
Namespace
Drupal\gdpr_tasks\EntityFile
modules/gdpr_tasks/src/Entity/TaskType.phpView source
<?php
namespace Drupal\gdpr_tasks\Entity;
use Drupal\Core\Config\Entity\ConfigEntityBundleBase;
/**
* Defines the Task type entity.
*
* @ConfigEntityType(
* id = "gdpr_task_type",
* label = @Translation("Task type"),
* handlers = {
* "view_builder" = "Drupal\Core\Entity\EntityViewBuilder",
* "list_builder" = "Drupal\gdpr_tasks\TaskTypeListBuilder",
* "form" = {
* "add" = "Drupal\gdpr_tasks\Form\TaskTypeForm",
* "edit" = "Drupal\gdpr_tasks\Form\TaskTypeForm",
* "delete" = "Drupal\gdpr_tasks\Form\TaskTypeDeleteForm"
* },
* "route_provider" = {
* "html" = "Drupal\gdpr_tasks\TaskTypeHtmlRouteProvider",
* },
* },
* config_prefix = "gdpr_task_type",
* admin_permission = "administer site configuration",
* bundle_of = "gdpr_task",
* entity_keys = {
* "id" = "id",
* "label" = "label",
* "uuid" = "uuid"
* },
* links = {
* "canonical" = "/admin/gdpr/tasks/gdpr_task_type/{gdpr_task_type}",
* "add-form" = "/admin/gdpr/tasks/gdpr_task_type/add",
* "edit-form" = "/admin/gdpr/tasks/gdpr_task_type/{gdpr_task_type}/edit",
* "delete-form" = "/admin/gdpr/tasks/gdpr_task_type/{gdpr_task_type}/delete",
* "collection" = "/admin/gdpr/tasks/gdpr_task_type"
* }
* )
*/
class TaskType extends ConfigEntityBundleBase implements TaskTypeInterface {
/**
* The Task type ID.
*
* @var string
*/
protected $id;
/**
* The Task type label.
*
* @var string
*/
protected $label;
}