From 23820bf7eebe76350bde13f5e6ddd18967047a31 Mon Sep 17 00:00:00 2001 From: Stefan Printezis Date: Fri, 8 Dec 2017 08:38:45 +0100 Subject: [PATCH] Removed &, objects are by reference by default (#3618) --- templates/module/src/Entity/Form/entity-content.php.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/module/src/Entity/Form/entity-content.php.twig b/templates/module/src/Entity/Form/entity-content.php.twig index 63982a485..e21dc7499 100644 --- a/templates/module/src/Entity/Form/entity-content.php.twig +++ b/templates/module/src/Entity/Form/entity-content.php.twig @@ -48,7 +48,7 @@ class {{ entity_class }}Form extends ContentEntityForm {% endblock %} * {@inheritdoc} */ public function save(array $form, FormStateInterface $form_state) { - $entity = &$this->entity; + $entity = $this->entity; {% if revisionable %} // Save as a new revision if requested to do so.