EntityType.html.twig in Drupal 7 to 8/9 Module Upgrader 8
Contains \Drupal\{{ module }}\Entity\{{ class }}.
File
templates/EntityType.html.twigView source
- /**
- * @file
- * Contains \Drupal\{{ module }}\Entity\{{ class }}.
- */
-
- namespace Drupal\{{ module }}\Entity;
-
- use Drupal\Core\Entity\ContentEntityBase;
-
- /**
- * @EntityType(
- * id = "{{ info.id }}",
- * label = @Translation("{{ info.label }}"),
- * controllers = {
- * "storage" = "{{ info.controllers.storage }}
- * },
- * base_table = "{{ info.base_table }}",
- * entity_keys = {
- * "id" = "{{ info.keys.id }}",
- {% if info.keys.label %}
- * "label" = "{{ info.keys.label }}"
- {% endif %}
- * }
- * )
- */
- class {{ class }} extends ContentEntityBase {
-
- /**
- * @FIXME
- * Move all logic relating to the {{ info.id }} entity type into this
- * class. For more information, see https://www.drupal.org/node/1827470.
- */
-
- }