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

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

returns the ready-use html for this link
public getHtml ( ) : string
Результат string
    public function getHtml()
    {
        $attributes = ["rel", "tabindex", "accesskey", "title", "name", "target"];
        $attribs = [];
        foreach ($attributes as $a) {
            $attribs[] = $a . '="' . $this->{$a} . '"';
        }
        return '<a href="' . $this->getLink() . '" ' . implode(" ", $attribs) . '>' . htmlspecialchars($this->getProperty("navigation_name")) . '</a>';
    }