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