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

8.4.x
Gabor Hojtsy 2017-06-28 15:20:11 +02:00
parent 10c15282fd
commit a1d257f8da
1 changed files with 1 additions and 1 deletions

View File

@ -178,8 +178,8 @@ class BlockContentBlock extends BlockBase implements ContainerFactoryPluginInter
* The block content entity. * The block content entity.
*/ */
protected function getEntity() { protected function getEntity() {
$uuid = $this->getDerivativeId();
if (!isset($this->blockContent)) { if (!isset($this->blockContent)) {
$uuid = $this->getDerivativeId();
$this->blockContent = $this->entityManager->loadEntityByUuid('block_content', $uuid); $this->blockContent = $this->entityManager->loadEntityByUuid('block_content', $uuid);
} }
return $this->blockContent; return $this->blockContent;