function TestRouteBuilder::setYamlDiscovery

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Routing/RouteBuilderTest.php \Drupal\Tests\Core\Routing\TestRouteBuilder::setYamlDiscovery()
  2. 10 core/tests/Drupal/Tests/Core/Routing/RouteBuilderTest.php \Drupal\Tests\Core\Routing\TestRouteBuilder::setYamlDiscovery()
  3. 11.x core/tests/Drupal/Tests/Core/Routing/RouteBuilderTest.php \Drupal\Tests\Core\Routing\TestRouteBuilder::setYamlDiscovery()

Sets the YAML discovery.

Parameters

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

File

core/tests/Drupal/Tests/Core/Routing/RouteBuilderTest.php, line 342

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.