public function currentRequestAllUrls()
    {
        $urls = $this->allUrls;

        if ($urls === null) {
            if ($this->getPath() === null) {
                $this->detectUrlDetails();
            }

            $urls = [];
            $current = $this->getHost() . $this->config->getPathPrefix() . $this->getPath();
            if (!is_null($this->getQuery())) {
                $current .= '?'. $this->getQuery();
            }
            $urls[$this->translate->getDefault()] = $current;
            foreach ($this->translate->getLanguages() as $language) {
                $current = $this->getHost() . $this->config->getPathPrefix() . '/' . $language . $this->getPath();
                if (!is_null($this->getQuery())) {
                    $current .= '?'. $this->getQuery();
                }
                $urls[$language] = $current;
            }

            $this->allUrls = $urls;
        }

        return $urls;
    }
public function currentRequestAllUrls()
    {
        $urls = $this->allUrls;

        if ($urls === null) {
            if ($this->getPath() === null) {
                $this->detectUrlDetails();
            }

            $urls = [];
            $current = $this->getHost() . $this->config->getPathPrefix() . $this->getPath();
            if (!is_null($this->getQuery())) {
                $current .= '?'. $this->getQuery();
            }
            $urls[$this->translate->getDefault()] = $current;
            foreach ($this->translate->getLanguages() as $language) {
                $current = $this->getHost() . $this->config->getPathPrefix() . '/' . $language . $this->getPath();
                if (!is_null($this->getQuery())) {
                    $current .= '?'. $this->getQuery();
                }
                $urls[$language] = $current;
            }

            $this->allUrls = $urls;
        }

        return $urls;
    }
public function currentRequestAllUrls ( ) { $ urls = $ this -> allUrls ; if ( $ urls === null ) { if ( $ this -> getPath ( ) === null ) { $ this -> detectUrlDetails ( ) ; } $ urls = [ ] ; $ current = $ this -> getHost ( ) . $ this -> config -> getPathPrefix ( ) . $ this -> getPath ( ) ; if ( ! is_null ( $ this -> getQuery ( ) ) ) { $ current .= '?' . $ this -> getQuery ( ) ; } $ urls [ $ this -> translate -> getDefault ( ) ] = $ current ; foreach ( $ this -> translate -> getLanguages ( ) as $ language ) { $ current = $ this -> getHost ( ) . $ this -> config -> getPathPrefix ( ) . '/' . $ language . $ this -> getPath ( ) ; if ( ! is_null ( $ this -> getQuery ( ) ) ) { $ current .= '?' . $ this -> getQuery ( ) ; } $ urls [ $ language ] = $ current ; } $ this -> allUrls = $ urls ; } return $ urls ; }
Returns array with all possible URL for current Request

@return array
Returns array with all possible URL for current Request