public function dropDown(array $links)
    {
        if (is_array($links[0])) {
            foreach ($links as $link) {
                call_user_func([$this, 'dropDown'], $link);
            }

            return $this;
        }

        $this->data['dropDown'][] = [
            'name' => $links[0],
            'href' => $links[1],
        ];

        return $this;
    }
public function dropDown(array $links)
    {
        if (is_array($links[0])) {
            foreach ($links as $link) {
                call_user_func([$this, 'dropDown'], $link);
            }

            return $this;
        }

        $this->data['dropDown'][] = [
            'name' => $links[0],
            'href' => $links[1],
        ];

        return $this;
    }
public function dropDown ( array $ links ) { if ( is_array ( $ links [ 0 ] ) ) { foreach ( $ links as $ link ) { call_user_func ( [ $ this , 'dropDown' ] , $ link ) ; } return $ this ; } $ this -> data [ 'dropDown' ] [ ] = [ 'name' => $ links [ 0 ] , 'href' => $ links [ 1 ] , ] ; return $ this ; }
Set drop-down items.

@param array $links

@return $this
Set drop - down items .