public function buildLink($rel, $href, $attributes = [])
    {
        // Build the link element
        $link = $this->buildHtmlElement($name = 'link', $value = '', $id = '', $class = '', $attributes);
        $link->attr('rel', $rel);
        $link->attr('href', $href);

        // Return link
        return $link;
    }
public function buildLink($rel, $href, $attributes = [])
    {
        // Build the link element
        $link = $this->buildHtmlElement($name = 'link', $value = '', $id = '', $class = '', $attributes);
        $link->attr('rel', $rel);
        $link->attr('href', $href);

        // Return link
        return $link;
    }
public function buildLink ( $ rel , $ href , $ attributes = [ ] ) { // Build the link element $ link = $ this -> buildHtmlElement ( $ name = 'link' , $ value = '' , $ id = '' , $ class = '' , $ attributes ) ; $ link -> attr ( 'rel' , $ rel ) ; $ link -> attr ( 'href' , $ href ) ; // Return link return $ link ; }
Build an html link element.

@param string $rel        The link rel attribute.
@param string $href       The link href attribute.
@param array  $attributes A set of extra attributes

@return HTMLElement

@throws \InvalidArgumentException
@throws Exception
Build an html link element .