public static function link($text, $link = '#', array $attributes = array())
    {
        if (!is_null($link)) {
            $attributes['href'] = $link;
        }

        $node = new Node\Link($text);
        return $node->render($attributes);
    }
public static function link($text, $link = '#', array $attributes = array())
    {
        if (!is_null($link)) {
            $attributes['href'] = $link;
        }

        $node = new Node\Link($text);
        return $node->render($attributes);
    }
public static function link ( $ text , $ link = '#' , array $ attributes = array ( ) ) { if ( ! is_null ( $ link ) ) { $ attributes [ 'href' ] = $ link ; } $ node = new Node \ Link ( $ text ) ; return $ node -> render ( $ attributes ) ; }
Creates link element

@param string $text
@param string $link
@param array $attributes Extra attributes
@return string
Creates link element