private function createHeaderLink($column, $text)
    {
        $a = new NodeElement();
        $a->openTag('a');

        if ($this->filter->isSortedBy($column)) {
            $a->setClass('text-info');
        }

        $a->addAttribute('href', $this->filter->getColumnSortingUrl($column))
          ->appendChildWithText($this->createHeaderLinkIcon($column), $text)
          ->closeTag();

        return $a;
    }
private function createHeaderLink($column, $text)
    {
        $a = new NodeElement();
        $a->openTag('a');

        if ($this->filter->isSortedBy($column)) {
            $a->setClass('text-info');
        }

        $a->addAttribute('href', $this->filter->getColumnSortingUrl($column))
          ->appendChildWithText($this->createHeaderLinkIcon($column), $text)
          ->closeTag();

        return $a;
    }
private function createHeaderLink ( $ column , $ text ) { $ a = new NodeElement ( ) ; $ a -> openTag ( 'a' ) ; if ( $ this -> filter -> isSortedBy ( $ column ) ) { $ a -> setClass ( 'text-info' ) ; } $ a -> addAttribute ( 'href' , $ this -> filter -> getColumnSortingUrl ( $ column ) ) -> appendChildWithText ( $ this -> createHeaderLinkIcon ( $ column ) , $ text ) -> closeTag ( ) ; return $ a ; }
Creates a link for table header

@param string $column
@param string $text Inner text
@return \Krystal\Form\NodeElement
Creates a link for table header