Skip to content

Commit

Permalink
Remove $entity->getType() in favor of $entity->bundle(). (#3235)
Browse files Browse the repository at this point in the history
  • Loading branch information
pfrenssen authored and jmolivas committed Mar 25, 2017
1 parent 78356dc commit 1c481e5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
9 changes: 0 additions & 9 deletions templates/module/src/Entity/entity-content.php.twig
Original file line number Diff line number Diff line change
Expand Up @@ -152,15 +152,6 @@ class {{ entity_class }} extends {% if revisionable %}RevisionableContentEntityB
}
{% endif %}

{% if bundle_entity_type %}
/**
* {@inheritdoc}
*/
public function getType() {
return $this->bundle();
}

{% endif %}
/**
* {@inheritdoc}
*/
Expand Down
10 changes: 0 additions & 10 deletions templates/module/src/Entity/interface-entity-content.php.twig
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,6 @@ interface {{ entity_class }}Interface extends {% if revisionable %}RevisionableI
{% block class_methods %}
// Add get/set methods for your configuration properties here.

{% if bundle_entity_type %}
/**
* Gets the {{ label }} type.
*
* @return string
* The {{ label }} type.
*/
public function getType();

{% endif %}
/**
* Gets the {{ label }} name.
*
Expand Down

0 comments on commit 1c481e5

Please sign in to comment.