public function getPrevSibling()
    {
        return (new Query())
            ->where(['parent_nav_id' => $this->parentNavId, 'container' => $this->container])
            ->andWhere(['<', 'sort_index', $this->sortIndex])
            ->with($this->_with)
            ->lang($this->lang)
            ->orderBy(['sort_index' => SORT_DESC])
            ->one();
    }
public function getPrevSibling()
    {
        return (new Query())
            ->where(['parent_nav_id' => $this->parentNavId, 'container' => $this->container])
            ->andWhere(['<', 'sort_index', $this->sortIndex])
            ->with($this->_with)
            ->lang($this->lang)
            ->orderBy(['sort_index' => SORT_DESC])
            ->one();
    }
public function getPrevSibling ( ) { return ( new Query ( ) ) -> where ( [ 'parent_nav_id' => $ this -> parentNavId , 'container' => $ this -> container ] ) -> andWhere ( [ '<' , 'sort_index' , $ this -> sortIndex ] ) -> with ( $ this -> _with ) -> lang ( $ this -> lang ) -> orderBy ( [ 'sort_index' => SORT_DESC ] ) -> one ( ) ; }
Get the previous sibling in the current siblings list.

If there is no previous sibling (assuming its the first sibling item in the list) false is returned, otherwise the {{luya\cms\menu\Item}} is returned.

@return \luya\cms\menu\Item|boolean Returns the previous sibling based on the current sibling, if not found false is returned.
Get the previous sibling in the current siblings list .