You are here

public function TestRouteBuilder::setYamlDiscovery in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/Routing/RouteBuilderTest.php \Drupal\Tests\Core\Routing\TestRouteBuilder::setYamlDiscovery()

Sets the YAML discovery.

Parameters

\Drupal\Component\Discovery\YamlDiscovery $yaml_discovery: The YAML discovery to set.

File

core/tests/Drupal/Tests/Core/Routing/RouteBuilderTest.php, line 296
Contains \Drupal\Tests\Core\Routing\RouteBuilderTest.

Class

TestRouteBuilder
Extends the core route builder with a setter method for the YAML discovery.

Namespace

Drupal\Tests\Core\Routing

Code

public function setYamlDiscovery(YamlDiscovery $yaml_discovery) {
  $this->yamlDiscovery = $yaml_discovery;
}