From a9df68076bc55653bce39445c2390b2cb0de9c02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Harold=20Ju=C3=A1rez?= Date: Mon, 5 Aug 2019 13:33:07 -0600 Subject: [PATCH] [generate:entity:content] Fix when owner is false (#4126) --- templates/module/src/Entity/entity-content.php.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/module/src/Entity/entity-content.php.twig b/templates/module/src/Entity/entity-content.php.twig index b2fc784b8..37f2b3d8b 100644 --- a/templates/module/src/Entity/entity-content.php.twig +++ b/templates/module/src/Entity/entity-content.php.twig @@ -9,7 +9,7 @@ namespace Drupal\{{ module }}\Entity; {% endblock %} {% block use_class %} -{% if has_owner %} +{% if has_owner or revisionable%} use Drupal\Core\Entity\EntityStorageInterface; {% endif %} use Drupal\Core\Field\BaseFieldDefinition;