public function getPath() { if ($this->path) { return $this->path; } if (!$this->getPage()) { return; } return $this->getPage()->getContentRoute()->getPath(); }