Accessing named parameter in custom route from within a controller
Hat tip to Andrew Welch for the answer.

With the route my-account/orders/&lt;order&gt;/pause it's possible to simply add the parameter to my controller method definition and it gets populated from the named parameter in the route.

  public function actionPauseOrder($order = null)
    {

       // do stuff
    }


The value of the named parameter order can then be accessed in the function as one would expect.

Super simple!