Skip to content

Commit 81e733f

Browse files
Issue 4284: [generate:entity:content] misses revision annotations (#4285)
Co-authored-by: Stef Van Looveren <stef.vanlooveren@vito.be>
1 parent 5ffab15 commit 81e733f

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

templates/module/src/Entity/entity-content.php.twig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,13 @@ use Drupal\user\UserInterface;
9393
* "langcode" = "langcode",
9494
* "published" = "status",
9595
* },
96+
{% if revisionable %}
97+
* revision_metadata_keys = {
98+
* "revision_user" = "revision_uid",
99+
* "revision_created" = "revision_timestamp",
100+
* "revision_log_message" = "revision_log"
101+
* },
102+
{% endif %}
96103
{% if has_forms %}
97104
* links = {
98105
* "canonical" = "{{ base_path }}/{{ entity_name }}/{{ '{'~entity_name~'}' }}",

0 commit comments

Comments
 (0)