src/Routes/Route.php
public function getRoutePath($onlyStaticPart = false) {
        if (!isset($this->_routePath) && isset($this->_controller)) {
            $this->_routePath = $this->controller->getActionPath($this->_action);
        }
        if ($onlyStaticPart) {
            return Reaction::$app->urlManager->extractStaticPart($this->_routePath);
        }
        return $this->_routePath;
    }
public function getRoutePath($onlyStaticPart = false) {
        if (!isset($this->_routePath) && isset($this->_controller)) {
            $this->_routePath = $this->controller->getActionPath($this->_action);
        }
        if ($onlyStaticPart) {
            return Reaction::$app->urlManager->extractStaticPart($this->_routePath);
        }
        return $this->_routePath;
    }
Get controller route path (With possible regex)
@param bool $onlyStaticPart
@return string|null