Skip to content

Commit a9df680

Browse files
hjuarez20enzolutions
authored andcommitted
[generate:entity:content] Fix when owner is false (#4126)
1 parent 350cc3d commit a9df680

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace Drupal\{{ module }}\Entity;
99
{% endblock %}
1010

1111
{% block use_class %}
12-
{% if has_owner %}
12+
{% if has_owner or revisionable%}
1313
use Drupal\Core\Entity\EntityStorageInterface;
1414
{% endif %}
1515
use Drupal\Core\Field\BaseFieldDefinition;

0 commit comments

Comments
 (0)