HeartbeatType.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?php
  2. namespace Drupal\heartbeat8\Entity;
  3. use Drupal\Core\Config\Entity\ConfigEntityBundleBase;
  4. /**
  5. * Defines the Heartbeat type entity.
  6. *
  7. * @ConfigEntityType(
  8. * id = "heartbeat_type",
  9. * label = @Translation("Heartbeat type"),
  10. * handlers = {
  11. * "list_builder" = "Drupal\heartbeat8\HeartbeatTypeListBuilder",
  12. * "form" = {
  13. * "add" = "Drupal\heartbeat8\Form\HeartbeatTypeForm",
  14. * "edit" = "Drupal\heartbeat8\Form\HeartbeatTypeForm",
  15. * "delete" = "Drupal\heartbeat8\Form\HeartbeatTypeDeleteForm"
  16. * },
  17. * "route_provider" = {
  18. * "html" = "Drupal\heartbeat8\HeartbeatTypeHtmlRouteProvider",
  19. * },
  20. * },
  21. * config_prefix = "heartbeat_type",
  22. * admin_permission = "administer site configuration",
  23. * bundle_of = "heartbeat",
  24. * entity_keys = {
  25. * "id" = "id",
  26. * "label" = "label",
  27. * "uuid" = "uuid"
  28. * },
  29. * links = {
  30. * "canonical" = "/admin/structure/heartbeat_type/{heartbeat_type}",
  31. * "add-form" = "/admin/structure/heartbeat_type/add",
  32. * "edit-form" = "/admin/structure/heartbeat_type/{heartbeat_type}/edit",
  33. * "delete-form" = "/admin/structure/heartbeat_type/{heartbeat_type}/delete",
  34. * "collection" = "/admin/structure/heartbeat_type"
  35. * }
  36. * )
  37. */
  38. class HeartbeatType extends ConfigEntityBundleBase implements HeartbeatTypeInterface {
  39. /**
  40. * The Heartbeat type ID.
  41. *
  42. * @var string
  43. */
  44. protected $id;
  45. /**
  46. * The Heartbeat type label.
  47. *
  48. * @var string
  49. */
  50. protected $label;
  51. /**
  52. * @var string
  53. */
  54. protected $description;
  55. }