eZ\Publish\Core\MVC\Symfony\Event\RouteReferenceGenerationEvent::getRouteReference PHP Méthode

getRouteReference() public méthode

public getRouteReference ( ) : RouteReference
Résultat eZ\Publish\Core\MVC\Symfony\Routing\RouteReference
    public function getRouteReference()
    {
        return $this->routeReference;
    }

Usage Example

 public function testGetSet()
 {
     $routeReference = new RouteReference('foo');
     $request = new Request();
     $event = new RouteReferenceGenerationEvent($routeReference, $request);
     $this->assertSame($routeReference, $event->getRouteReference());
     $this->assertSame($request, $event->getRequest());
     $newRouteReference = new RouteReference('bar');
     $event->setRouteReference($newRouteReference);
     $this->assertSame($newRouteReference, $event->getRouteReference());
 }
All Usage Examples Of eZ\Publish\Core\MVC\Symfony\Event\RouteReferenceGenerationEvent::getRouteReference