Commit a1d257f8 authored by Gábor Hojtsy's avatar Gábor Hojtsy

Issue #2854046 by andypost: Only call getDerivativeId() when needed

parent 10c15282
......@@ -178,8 +178,8 @@ public function build() {
* The block content entity.
*/
protected function getEntity() {
$uuid = $this->getDerivativeId();
if (!isset($this->blockContent)) {
$uuid = $this->getDerivativeId();
$this->blockContent = $this->entityManager->loadEntityByUuid('block_content', $uuid);
}
return $this->blockContent;
......
Markdown is supported
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