Skip to content

Commit

Permalink
[generate:entity:content] Change to EditorialContentEntityBase (#4127)
Browse files Browse the repository at this point in the history
  • Loading branch information
hjuarez20 authored and enzolutions committed Aug 5, 2019
1 parent a9df680 commit dd64922
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/module/src/Entity/entity-content.php.twig
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit dd64922

Please sign in to comment.