Security update for Core, with self-updated composer
[yaffs-website] / vendor / drupal / console / templates / module / src / Entity / Form / entity-content.php.twig
index 63982a48598aa15485b6fcf98b995b42f94dd50f..e21dc749962a335e22fba1c917c5d1e80f70d3f5 100644 (file)
@@ -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.