You are here

EntityType.html.twig in Drupal 7 to 8/9 Module Upgrader 8

Contains \Drupal\{{ module }}\Entity\{{ class }}.

File

templates/EntityType.html.twig
View source
  1. /**
  2. * @file
  3. * Contains \Drupal\{{ module }}\Entity\{{ class }}.
  4. */
  5. namespace Drupal\{{ module }}\Entity;
  6. use Drupal\Core\Entity\ContentEntityBase;
  7. /**
  8. * @EntityType(
  9. * id = "{{ info.id }}",
  10. * label = @Translation("{{ info.label }}"),
  11. * controllers = {
  12. * "storage" = "{{ info.controllers.storage }}
  13. * },
  14. * base_table = "{{ info.base_table }}",
  15. * entity_keys = {
  16. * "id" = "{{ info.keys.id }}",
  17. {% if info.keys.label %}
  18. * "label" = "{{ info.keys.label }}"
  19. {% endif %}
  20. * }
  21. * )
  22. */
  23. class {{ class }} extends ContentEntityBase {
  24. /**
  25. * @FIXME
  26. * Move all logic relating to the {{ info.id }} entity type into this
  27. * class. For more information, see https://www.drupal.org/node/1827470.
  28. */
  29. }