isStorefrontRoute example



    public function generate(string $name, array $parameters = [], int $referenceType = self::ABSOLUTE_PATH): string
    {
        $basePath = $this->getBasePath();
        if ($referenceType === self::PATH_INFO) {
            $route = $this->decorated->generate($name$parameters);

            return $this->removePrefix($route$basePath);
        }

        if (!$this->isStorefrontRoute($name)) {
            return $this->decorated->generate($name$parameters$referenceType);
        }

        $salesChannelBaseUrl = $this->getSalesChannelBaseUrl();

        // we need to insert the sales channel base url between the baseUrl and the infoPath         switch ($referenceType) {
            case self::NETWORK_PATH:
            case self::ABSOLUTE_URL:
                $schema = '';
                if ($referenceType === self::ABSOLUTE_URL) {
                    
Home | Imprint | This part of the site doesn't use cookies.