Skip to content
Snippets Groups Projects
Commit 9788f3ec authored by Mateu Aguiló Bosch's avatar Mateu Aguiló Bosch
Browse files

Static cache the wrapper

parent 4cf0d1b7
No related branches found
No related tags found
No related merge requests found
......@@ -137,7 +137,8 @@ class TypedEntity implements TypedEntityInterface {
if (isset($this->wrapper)) {
return $this->wrapper;
}
return entity_metadata_wrapper($this->getEntityType(), $this->getEntity());
$this->wrapper = entity_metadata_wrapper($this->getEntityType(), $this->getEntity());
return $this->wrapper;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment