diff --git a/src/Entity/ParagraphsType.php b/src/Entity/ParagraphsType.php index 9b815c0..38f0cdd 100644 --- a/src/Entity/ParagraphsType.php +++ b/src/Entity/ParagraphsType.php @@ -159,11 +159,13 @@ class ParagraphsType extends ConfigEntityBundleBase implements ParagraphsTypeInt * {@inheritdoc} */ public function getIconFile() { + if (!$this->icon_uuid) { + return FALSE; + } $icon = $this->getFileByUuid($this->icon_uuid) ?: $this->restoreDefaultIcon(); - if ($this->icon_uuid && $icon) { + if ($icon) { return $icon; } - return FALSE; }