Contao\CoreBundle\Event\PreviewUrlConvertEvent::getUrl PHP Method

getUrl() public method

Returns the URL.
public getUrl ( ) : string
return string
    public function getUrl()
    {
        return $this->url;
    }

Usage Example

 /**
  * Tests the URL getter and setter.
  */
 public function testUrlGetterSetter()
 {
     $event = new PreviewUrlConvertEvent();
     $this->assertNull($event->getUrl());
     $event->setUrl('http://localhost');
     $this->assertEquals('http://localhost', $event->getUrl());
 }
PreviewUrlConvertEvent