Pimcore\Model\Document\Link::getHref PHP Method

getHref() public method

Returns the plain text path of the link
public getHref ( ) : string
return string
    public function getHref()
    {
        $path = "";
        if ($this->getLinktype() == "internal") {
            if ($this->getObject() instanceof Document || $this->getObject() instanceof Asset) {
                $path = $this->getObject()->getFullPath();
            }
        } else {
            $path = $this->getDirect();
        }
        $this->href = $path;
        return $path;
    }