/** * Get the current path info for the request. * * @return string */ public function path() { if (!$this->cmsPath) { $this->fillByProvider(); } if ($this->cmsPath) { return $this->cmsPath->getRewrittenPath(); } return $this->originalPath(); }
public function createDeactivated($scope, $originalPath) { $cmsPath = new CmsPath(); $cmsPath->setOriginalPath($originalPath); $cmsPath->setIsCmsPath(FALSE); $cmsPath->setRewrittenPath($this->removeScope($originalPath, $scope)); $cmsPath->setCmsPathPrefix(''); $cmsPath->setTreeScope($scope); $cmsPath->setNodePath(''); $cmsPath->setRoutePath($originalPath); $cmsPath->setSubPath(''); $cmsPath->setFallbackNode($this->getFallbackNode($scope)); return $cmsPath; }