Pimcore\Model\Document\Tag\Href::getElement PHP Method

getElement() public method

Returns one of them: Document, Object, Asset
public getElement ( ) : mixed
return mixed
    public function getElement()
    {
        $this->setElement();
        //don't give unpublished elements in frontend
        if (Document::doHideUnpublished() and !Element\Service::isPublished($this->element)) {
            return false;
        }
        return $this->element;
    }