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. *