Advertisement
Guest User

Untitled

a guest
Jun 15th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. * id = "content_entity_example_contact",
  2. * label = @Translation("Contact entity"),
  3. * handlers = {
  4. * "view_builder" = "DrupalCoreEntityEntityViewBuilder",
  5. * "list_builder" = "Drupalcontent_entity_exampleEntityControllerContactListBuilder",
  6. * "form" = {
  7. * "default" = "Drupalcontent_entity_exampleFormContactForm",
  8. * "delete" = "Drupalcontent_entity_exampleFormContactDeleteForm",
  9. * },
  10. * "access" = "Drupalcontent_entity_exampleContactAccessControlHandler",
  11. * },
  12. * list_cache_contexts = { "user" },
  13. * base_table = "drupal.contact",
  14. * admin_permission = "administer contact entity",
  15. * entity_keys = {
  16. * "id" = "id",
  17. * "label" = "name",
  18. * "uuid" = "uuid"
  19. * },
  20.  
  21. .......
  22. class Contact extends ContentEntityBase implements ContactInterface {
  23.  
  24. use EntityChangedTrait;
  25. .......
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement