Skip to content

Commit

Permalink
Removed &, objects are by reference by default (#3618)
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanPrintezis authored and jmolivas committed Dec 8, 2017
1 parent 81c1371 commit 23820bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/module/src/Entity/Form/entity-content.php.twig
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 23820bf

Please sign in to comment.