protected function computeCanonicalPagePath()
    {
        $parent = static::getByID($this->cParentID);
        $parentPath = $parent->getCollectionPathObject();
        $path = '';
        if ($parentPath instanceof PagePath) {
            $path = $parentPath->getPagePath();
        }
        $path .= '/';
        $cID = ($this->getCollectionPointerOriginalID() > 0) ? $this->getCollectionPointerOriginalID() : $this->cID;
        $path .= $this->getCollectionHandle() ? $this->getCollectionHandle() : $cID;

        $event = new PagePathEvent($this);
        $event->setPagePath($path);
        $event = Events::dispatch('on_compute_canonical_page_path', $event);

        return $event->getPagePath();
    }
protected function computeCanonicalPagePath()
    {
        $parent = static::getByID($this->cParentID);
        $parentPath = $parent->getCollectionPathObject();
        $path = '';
        if ($parentPath instanceof PagePath) {
            $path = $parentPath->getPagePath();
        }
        $path .= '/';
        $cID = ($this->getCollectionPointerOriginalID() > 0) ? $this->getCollectionPointerOriginalID() : $this->cID;
        $path .= $this->getCollectionHandle() ? $this->getCollectionHandle() : $cID;

        $event = new PagePathEvent($this);
        $event->setPagePath($path);
        $event = Events::dispatch('on_compute_canonical_page_path', $event);

        return $event->getPagePath();
    }
protected function computeCanonicalPagePath ( ) { $ parent = static :: getByID ( $ this -> cParentID ) ; $ parentPath = $ parent -> getCollectionPathObject ( ) ; $ path = '' ; if ( $ parentPath instanceof PagePath ) { $ path = $ parentPath -> getPagePath ( ) ; } $ path .= '/' ; $ cID = ( $ this -> getCollectionPointerOriginalID ( ) > 0 ) ? $ this -> getCollectionPointerOriginalID ( ) : $ this -> cID ; $ path .= $ this -> getCollectionHandle ( ) ? $ this -> getCollectionHandle ( ) : $ cID ; $ event = new PagePathEvent ( $ this ) ; $ event -> setPagePath ( $ path ) ; $ event = Events :: dispatch ( 'on_compute_canonical_page_path' , $ event ) ; return $ event -> getPagePath ( ) ; }
For the curret page, return the text that will be used for that pages canonical path. This happens before
any uniqueness checks get run.

@return string
For the curret page return the text that will be used for that pages canonical path . This happens before any uniqueness checks get run .