public function TestDefaultHtmlRouteProvider::getAddPageRoute in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Core/Entity/Routing/DefaultHtmlRouteProviderTest.php \Drupal\Tests\Core\Entity\Routing\TestDefaultHtmlRouteProvider::getAddPageRoute()
Gets the add page route.
Built only for entity types that have bundles.
Parameters
\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type.
Return value
\Symfony\Component\Routing\Route|null The generated route, if available.
Overrides DefaultHtmlRouteProvider::getAddPageRoute
File
- core/
tests/ Drupal/ Tests/ Core/ Entity/ Routing/ DefaultHtmlRouteProviderTest.php, line 360 - Contains \Drupal\Tests\Core\Entity\Routing\DefaultHtmlRouteProviderTest.
Class
Namespace
Drupal\Tests\Core\Entity\RoutingCode
public function getAddPageRoute(EntityTypeInterface $entity_type) {
return parent::getAddPageRoute($entity_type);
}