Pimcore\Model\Document\Tag\Link::getHref PHP Метод

getHref() публичный Метод

public getHref ( ) : string
Результат string
    public function getHref()
    {
        $this->updatePathFromInternal();
        $url = $this->data["path"];
        if (strlen($this->data["parameters"]) > 0) {
            $url .= "?" . str_replace("?", "", $this->getParameters());
        }
        if (strlen($this->data["anchor"]) > 0) {
            $url .= "#" . str_replace("#", "", $this->getAnchor());
        }
        return $url;
    }