public function link($node, $query = '')
    {
        if (is_array($node)) {
            $links = array();
            $nodes = $node;
            foreach ($nodes as $node) {
                $links[] = $this->link($node, $query);
            }

            return implode(', ', $links);
        }

        return '<a href="'.route($node->getURL()).$query.'">'.$node->getName().'</a>';
    }
public function link($node, $query = '')
    {
        if (is_array($node)) {
            $links = array();
            $nodes = $node;
            foreach ($nodes as $node) {
                $links[] = $this->link($node, $query);
            }

            return implode(', ', $links);
        }

        return '<a href="'.route($node->getURL()).$query.'">'.$node->getName().'</a>';
    }
public function link ( $ node , $ query = '' ) { if ( is_array ( $ node ) ) { $ links = array ( ) ; $ nodes = $ node ; foreach ( $ nodes as $ node ) { $ links [ ] = $ this -> link ( $ node , $ query ) ; } return implode ( ', ' , $ links ) ; } return '<a href="' . route ( $ node -> getURL ( ) ) . $ query . '">' . $ node -> getName ( ) . '</a>' ; }
Returns an HTML link to a node URL.

@param ComBaseDomainEntityNode $node
@param string                  $query

@return string
Returns an HTML link to a node URL .