scopeConfig = $scopeConfig; } /** * Return logo image path * * @return string|null */ public function getPath(): ?string { $path = null; $scopeType = ScopeInterface::SCOPE_STORE; if ($this->scopeConfig->getValue('general/single_store_mode/enabled') === "1") { $scopeType = ScopeInterface::SCOPE_WEBSITE; } $storeLogoPath = $this->scopeConfig->getValue( 'design/header/logo_src', $scopeType ); if ($storeLogoPath !== null) { $path = Logo::UPLOAD_DIR . '/' . $storeLogoPath; } return $path; } }