diff --git a/core/lib/Drupal/Core/Routing/NullGenerator.php b/core/lib/Drupal/Core/Routing/NullGenerator.php index a271538..beb2aaa 100644 --- a/core/lib/Drupal/Core/Routing/NullGenerator.php +++ b/core/lib/Drupal/Core/Routing/NullGenerator.php @@ -44,7 +44,7 @@ protected function getRoute($name) { /** * {@inheritdoc} */ - protected function processRoute(Route $route, array &$parameters) { + protected function processRoute(Route $route, array &$parameters, $name) { } /** diff --git a/core/tests/Drupal/Tests/Core/Access/RouteProcessorCsrfTest.php b/core/tests/Drupal/Tests/Core/Access/RouteProcessorCsrfTest.php index 871ffb0..6bd291a 100644 --- a/core/tests/Drupal/Tests/Core/Access/RouteProcessorCsrfTest.php +++ b/core/tests/Drupal/Tests/Core/Access/RouteProcessorCsrfTest.php @@ -49,7 +49,7 @@ public function testProcessOutboundNoRequirement() { $route = new Route('/test-path'); $parameters = array(); - $this->processor->processOutbound($route, $parameters); + $this->processor->processOutbound($route, $parameters, 'test'); // No parameters should be added to the parameters array. $this->assertEmpty($parameters); } @@ -67,7 +67,7 @@ public function testProcessOutbound() { $route = new Route('/test-path', array(), array('_csrf_token' => 'TRUE')); $parameters = array(); - $this->processor->processOutbound($route, $parameters); + $this->processor->processOutbound($route, $parameters, 'test'); // 'token' should be added to the parameters array. $this->assertArrayHasKey('token', $parameters); $this->assertSame($parameters['token'], 'test_token'); @@ -85,7 +85,7 @@ public function testProcessOutboundDynamicOne() { $route = new Route('/test-path/{slug}', array(), array('_csrf_token' => 'TRUE')); $parameters = array('slug' => 100); - $this->assertNull($this->processor->processOutbound($route, $parameters)); + $this->assertNull($this->processor->processOutbound($route, $parameters, 'test')); } /** @@ -100,7 +100,7 @@ public function testProcessOutboundDynamicTwo() { $route = new Route('{slug_1}/test-path/{slug_2}', array(), array('_csrf_token' => 'TRUE')); $parameters = array('slug_1' => 100, 'slug_2' => 'test'); - $this->assertNull($this->processor->processOutbound($route, $parameters)); + $this->assertNull($this->processor->processOutbound($route, $parameters, 'test')); } }