From 1c481e5b9f95b0d330c7c488851ef4f7c83a0c9e Mon Sep 17 00:00:00 2001 From: Pieter Frenssen Date: Sat, 25 Mar 2017 18:14:28 +0100 Subject: [PATCH] Remove $entity->getType() in favor of $entity->bundle(). (#3235) --- templates/module/src/Entity/entity-content.php.twig | 9 --------- .../src/Entity/interface-entity-content.php.twig | 10 ---------- 2 files changed, 19 deletions(-) diff --git a/templates/module/src/Entity/entity-content.php.twig b/templates/module/src/Entity/entity-content.php.twig index 570277ccd..21cc5ab01 100644 --- a/templates/module/src/Entity/entity-content.php.twig +++ b/templates/module/src/Entity/entity-content.php.twig @@ -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} */ diff --git a/templates/module/src/Entity/interface-entity-content.php.twig b/templates/module/src/Entity/interface-entity-content.php.twig index 9f7d3dad9..414e67fc2 100644 --- a/templates/module/src/Entity/interface-entity-content.php.twig +++ b/templates/module/src/Entity/interface-entity-content.php.twig @@ -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. *