function KernelTestAttributeRouteDiscovery::collectRoutes
Overrides AttributeRouteDiscovery::collectRoutes
File
-
core/
tests/ Drupal/ KernelTests/ KernelTestAttributeRouteDiscovery.php, line 21
Class
- KernelTestAttributeRouteDiscovery
- Discovers routes in a kernel test class using Symfony's Route attribute.
Namespace
Drupal\KernelTestsCode
protected function collectRoutes() : iterable {
$reflectionClass = $this->getReflectionClass($this->kernelTestClass);
if ($reflectionClass !== NULL) {
yield $this->createControllerRouteCollection($reflectionClass);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.