private function getPageId()
    {
        if (preg_match('/\/page\/(\w+)$/', $this->name, $matches)) {
            $id = $matches[1];
        } else {
            $id = $this->environment->getRequestHelper()->getIdentifierParam('id', null, true);
        }
        return $id;
    }