yii\base\Controller::getRoute PHP Method

getRoute() public method

Returns the route of the current request.
public getRoute ( ) : string
return string the route (module ID, controller ID and action ID) of the current request.
    public function getRoute()
    {
        return $this->action !== null ? $this->action->getUniqueId() : $this->getUniqueId();
    }