protected function buildPathToSubject($language = false)
    {
        //area
        $path = $this->buildPathToArea($language);
        //ancestors
        foreach((array) $this->ancestors as $ancestor => $primaryKeyValues) {
            $path[] = $ancestor;
            $path[] = implode('|', array_values($primaryKeyValues));
        }
        //subject
        if(isset($this->route['parameters']['subject'])) {
            $path[] = $this->route['parameters']['subject'];
        }
        return $path;
    }
protected function buildPathToSubject($language = false)
    {
        //area
        $path = $this->buildPathToArea($language);
        //ancestors
        foreach((array) $this->ancestors as $ancestor => $primaryKeyValues) {
            $path[] = $ancestor;
            $path[] = implode('|', array_values($primaryKeyValues));
        }
        //subject
        if(isset($this->route['parameters']['subject'])) {
            $path[] = $this->route['parameters']['subject'];
        }
        return $path;
    }
protected function buildPathToSubject ( $ language = false ) { //area $ path = $ this -> buildPathToArea ( $ language ) ; //ancestors foreach ( ( array ) $ this -> ancestors as $ ancestor => $ primaryKeyValues ) { $ path [ ] = $ ancestor ; $ path [ ] = implode ( '|' , array_values ( $ primaryKeyValues ) ) ; } //subject if ( isset ( $ this -> route [ 'parameters' ] [ 'subject' ] ) ) { $ path [ ] = $ this -> route [ 'parameters' ] [ 'subject' ] ; } return $ path ; }
builds path to subject from route
@param $language language code to embed into URL when different from currently selected one
builds path to subject from route