X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fmodules%2Fcontrib%2Fdrupalmoduleupgrader%2Ftemplates%2FEntityType.html.twig;fp=web%2Fmodules%2Fcontrib%2Fdrupalmoduleupgrader%2Ftemplates%2FEntityType.html.twig;h=a3b9417970c09cf3952be5a6731c17313645a4b6;hp=0000000000000000000000000000000000000000;hb=8acec36f19c470dfcda1ae2336826a782f41874c;hpb=e0411c4e83ba0d079034db83c3f7f55be24a0e35 diff --git a/web/modules/contrib/drupalmoduleupgrader/templates/EntityType.html.twig b/web/modules/contrib/drupalmoduleupgrader/templates/EntityType.html.twig new file mode 100644 index 000000000..a3b941797 --- /dev/null +++ b/web/modules/contrib/drupalmoduleupgrader/templates/EntityType.html.twig @@ -0,0 +1,34 @@ +/** + * @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. + */ + +}