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