eZ\Publish\Core\MVC\Symfony\Routing\RouteReference::remove PHP Method

remove() public method

Removes a route parameter.
public remove ( string $parameterName )
$parameterName string
    public function remove($parameterName)
    {
        $this->params->remove($parameterName);
    }

Usage Example

 public function testRemoveParam()
 {
     $reference = new RouteReference('foo');
     $reference->set('foo', 'bar');
     $this->assertTrue($reference->has('foo'));
     $this->assertSame('bar', $reference->get('foo'));
     $reference->remove('foo');
     $this->assertFalse($reference->has('foo'));
 }