public function forTemplate()
    {
        if ($this->LinkURL) {
            $link = $this->renderWith([
                // Render link with this template if its found. eg Link_button.ss
                Link::class . '_' . $this->Template,
                Link::class
            ]);

            // Legacy. Recommended to use templating above.
            $this->extend('updateLinkTemplate', $this, $link);

            return $link;
        }

        return '';
    }
public function forTemplate()
    {
        if ($this->LinkURL) {
            $link = $this->renderWith([
                // Render link with this template if its found. eg Link_button.ss
                Link::class . '_' . $this->Template,
                Link::class
            ]);

            // Legacy. Recommended to use templating above.
            $this->extend('updateLinkTemplate', $this, $link);

            return $link;
        }

        return '';
    }
public function forTemplate ( ) { if ( $ this -> LinkURL ) { $ link = $ this -> renderWith ( [ // Render link with this template if its found. eg Link_button.ss Link :: class . '_' . $ this -> Template , Link :: class ] ) ; // Legacy. Recommended to use templating above. $ this -> extend ( 'updateLinkTemplate' , $ this , $ link ) ; return $ link ; } return '' ; }
Renders an HTML anchor tag for this link

@return DBHTMLText|string
Renders an HTML anchor tag for this link