Skip to content

Commit

Permalink
Always extend ContentEntityInterface since it extends RevisionableInt…
Browse files Browse the repository at this point in the history
…erface anyway (#3555)
  • Loading branch information
Dropa authored and jmolivas committed Oct 28, 2017
1 parent bfeace7 commit 16a57bf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions templates/module/src/Entity/interface-entity-content.php.twig
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@ namespace Drupal\{{module}}\Entity;
{% endblock %}

{% block use_class %}
use Drupal\Core\Entity\ContentEntityInterface;
{% if revisionable %}
use Drupal\Core\Entity\RevisionLogInterface;
use Drupal\Core\Entity\RevisionableInterface;
{% else %}
use Drupal\Core\Entity\ContentEntityInterface;
{% endif %}
use Drupal\Core\Entity\EntityChangedInterface;
use Drupal\user\EntityOwnerInterface;
Expand All @@ -25,7 +23,7 @@ use Drupal\user\EntityOwnerInterface;
*
* @ingroup {{module}}
*/
interface {{ entity_class }}Interface extends {% if revisionable %}RevisionableInterface, RevisionLogInterface{% else %} ContentEntityInterface{% endif %}, EntityChangedInterface, EntityOwnerInterface {% endblock %}
interface {{ entity_class }}Interface extends ContentEntityInterface{% if revisionable %}, RevisionLogInterface{% endif %}, EntityChangedInterface, EntityOwnerInterface {% endblock %}
{% block class_methods %}
// Add get/set methods for your configuration properties here.

Expand Down

0 comments on commit 16a57bf

Please sign in to comment.