Skip to content
Permalink
Browse files

[generate:entity:content] Change to EditorialContentEntityBase (#4127)

  • Loading branch information...
harold20 authored and enzolutions committed Aug 5, 2019
1 parent a9df680 commit dd6492237ad18402a8886f08ce3423d8a6e39262
Showing with 2 additions and 2 deletions.
  1. +2 −2 templates/module/src/Entity/entity-content.php.twig
@@ -14,7 +14,7 @@ use Drupal\Core\Entity\EntityStorageInterface;
{% endif %}
use Drupal\Core\Field\BaseFieldDefinition;
{% if revisionable %}
use Drupal\Core\Entity\RevisionableContentEntityBase;
use Drupal\Core\Entity\EditorialContentEntityBase
use Drupal\Core\Entity\RevisionableInterface;
{% else %}
use Drupal\Core\Entity\ContentEntityBase;
@@ -122,7 +122,7 @@ use Drupal\user\UserInterface;
{% endif %}
* )
*/
class {{ entity_class }} extends {% if revisionable %}RevisionableContentEntityBase{% else %}ContentEntityBase{% endif %} implements {{ entity_class }}Interface {% endblock %}
class {{ entity_class }} extends {% if revisionable %}EditorialContentEntityBase{% else %}ContentEntityBase{% endif %} implements {{ entity_class }}Interface {% endblock %}

{% block use_trait %}
use EntityChangedTrait;

0 comments on commit dd64922

Please sign in to comment.
You can’t perform that action at this time.