Commit 9788f3ec authored by Mateu Aguiló Bosch's avatar Mateu Aguiló Bosch
Browse files

Static cache the wrapper

parent 4cf0d1b7
......@@ -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;
}
/**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment