Issue #2854046 by andypost: Only call getDerivativeId() when needed
parent
10c15282fd
commit
a1d257f8da
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue