public function getWebsiteName()
    {
        $websites = $this->storeManager->getWebsites();

        $websiteName = 'Not set.';

        foreach ($websites as $website) {
            if ($website->getIsDefault()) {
                $websiteName = $website->getName();
            }
        }

        return $websiteName;
    }
public function getWebsiteName()
    {
        $websites = $this->storeManager->getWebsites();

        $websiteName = 'Not set.';

        foreach ($websites as $website) {
            if ($website->getIsDefault()) {
                $websiteName = $website->getName();
            }
        }

        return $websiteName;
    }
Returns Website name

@return string $websiteName