fix ogImage setter
This commit is contained in:
parent
519a3081ae
commit
3b7744b3bc
|
@ -242,6 +242,10 @@ class Page implements EntityInterface
|
||||||
|
|
||||||
public function setOgImage($ogImage): self
|
public function setOgImage($ogImage): self
|
||||||
{
|
{
|
||||||
|
if ($this->ogImage !== null && $ogImage === null) {
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
$this->ogImage = $ogImage;
|
$this->ogImage = $ogImage;
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
|
|
Loading…
Reference in a new issue