protected function buildPathToArea($language = false)
    {
        $path = [];
        //language
        if($language) {
            $path[] = $language;
        } elseif(isset($this->route['parameters']['language'])) {
            $path[] = $this->route['parameters']['language'];
        }
        //area
        if(isset($this->route['parameters']['area'])) {
            $path[] = $this->route['parameters']['area'];
        }
        return $path;
    }
protected function buildPathToArea($language = false)
    {
        $path = [];
        //language
        if($language) {
            $path[] = $language;
        } elseif(isset($this->route['parameters']['language'])) {
            $path[] = $this->route['parameters']['language'];
        }
        //area
        if(isset($this->route['parameters']['area'])) {
            $path[] = $this->route['parameters']['area'];
        }
        return $path;
    }
protected function buildPathToArea ( $ language = false ) { $ path = [ ] ; //language if ( $ language ) { $ path [ ] = $ language ; } elseif ( isset ( $ this -> route [ 'parameters' ] [ 'language' ] ) ) { $ path [ ] = $ this -> route [ 'parameters' ] [ 'language' ] ; } //area if ( isset ( $ this -> route [ 'parameters' ] [ 'area' ] ) ) { $ path [ ] = $ this -> route [ 'parameters' ] [ 'area' ] ; } return $ path ; }
builds path to area from route
@param $language language code to embed into URL when different from currently selected one
builds path to area from route