constant TWEET_NODE_TYPE in Heartbeat 8
Defines the Status entity.
Plugin annotation
@ContentEntityType(
id = "status",
label = @Translation("Status"),
bundle_label = @Translation("Status type"),
handlers = {
"view_builder" = "Drupal\Core\Entity\EntityViewBuilder",
"list_builder" = "Drupal\statusmessage\StatusListBuilder",
"views_data" = "Drupal\statusmessage\Entity\StatusViewsData",
"form" = {
"default" = "Drupal\statusmessage\Form\StatusForm",
"add" = "Drupal\statusmessage\Form\StatusForm",
"edit" = "Drupal\statusmessage\Form\StatusForm",
"delete" = "Drupal\statusmessage\Form\StatusDeleteForm",
},
"access" = "Drupal\statusmessage\StatusAccessControlHandler",
"route_provider" = {
"html" = "Drupal\statusmessage\StatusHtmlRouteProvider",
},
},
base_table = "status",
admin_permission = "administer status entities",
entity_keys = {
"id" = "id",
"bundle" = "type",
"label" = "name",
"uuid" = "uuid",
"uid" = "uid",
"langcode" = "langcode",
"status" = "status",
},
links = {
"canonical" = "/admin/structure/status/{status}",
"add-form" = "/admin/structure/status/add/{status_type}",
"edit-form" = "/admin/structure/status/{status}/edit",
"delete-form" = "/admin/structure/status/{status}/delete",
"collection" = "/admin/structure/status",
},
bundle_entity_type = "status_type",
field_ui_base_route = "entity.status_type.edit_form"
)
File
- modules/
statusmessage/ src/ Entity/ Status.php, line 60
Namespace
Drupal\statusmessage\EntityCode
const TWEET_NODE_TYPE = 'tweet';