route()
method and the name
argumentas()
methodname
argument to the route()
method, we will use the pattern
as the name of the route.route()
method in the request context object (event).event.route()
method:getCurrentRouteName()
- Gives you the name of the current route, if anygetCurrentRoute()
- Gives you the currently executed routegetCurrentRoutedURL()
- Gives you the complete routed URL pattern that matched the routegetCurrentRoutedNamespace()
- Gives you the current routed namespace, if any