public function addLink($title, $href, $active = false)
    {
        $this->data['tabs'][] = [
            'id'      => mt_rand(),
            'title'   => $title,
            'href'    => $href,
            'type'    => static::TYPE_LINK,
        ];

        if ($active) {
            $this->data['active'] = count($this->data['tabs']) - 1;
        }

        return $this;
    }
public function addLink($title, $href, $active = false)
    {
        $this->data['tabs'][] = [
            'id'      => mt_rand(),
            'title'   => $title,
            'href'    => $href,
            'type'    => static::TYPE_LINK,
        ];

        if ($active) {
            $this->data['active'] = count($this->data['tabs']) - 1;
        }

        return $this;
    }
public function addLink ( $ title , $ href , $ active = false ) { $ this -> data [ 'tabs' ] [ ] = [ 'id' => mt_rand ( ) , 'title' => $ title , 'href' => $ href , 'type' => static :: TYPE_LINK , ] ; if ( $ active ) { $ this -> data [ 'active' ] = count ( $ this -> data [ 'tabs' ] ) - 1 ; } return $ this ; }
Add a link on tab.

@param string $title
@param string $href
@param bool   $active

@return $this
Add a link on tab .