Neos\Flow\Mvc\Routing\Router::getLastMatchedRoute PHP Method

getLastMatchedRoute() public method

Returns NULL if no route matched or route() has not been called yet
public getLastMatchedRoute ( ) : Route
return Route
    public function getLastMatchedRoute()
    {
        return $this->lastMatchedRoute;
    }

Usage Example

 /**
  * @test
  */
 public function getLastMatchedRouteReturnsNullByDefault()
 {
     $this->assertNull($this->router->getLastMatchedRoute());
 }