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

setUrl() public method

Sets the URL.
public setUrl ( string $url )
$url string
    public function setUrl($url)
    {
        $this->url = $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());
 }
All Usage Examples Of Contao\CoreBundle\Event\PreviewUrlConvertEvent::setUrl
PreviewUrlConvertEvent