function TestDefaultHtmlRouteProvider::getCanonicalRoute

Same name in other branches
  1. 8.9.x core/tests/Drupal/Tests/Core/Entity/Routing/DefaultHtmlRouteProviderTest.php \Drupal\Tests\Core\Entity\Routing\TestDefaultHtmlRouteProvider::getCanonicalRoute()
  2. 10 core/tests/Drupal/Tests/Core/Entity/Routing/DefaultHtmlRouteProviderTest.php \Drupal\Tests\Core\Entity\Routing\TestDefaultHtmlRouteProvider::getCanonicalRoute()
  3. 11.x core/tests/Drupal/Tests/Core/Entity/Routing/DefaultHtmlRouteProviderTest.php \Drupal\Tests\Core\Entity\Routing\TestDefaultHtmlRouteProvider::getCanonicalRoute()

Overrides DefaultHtmlRouteProvider::getCanonicalRoute

File

core/tests/Drupal/Tests/Core/Entity/Routing/DefaultHtmlRouteProviderTest.php, line 370

Class

TestDefaultHtmlRouteProvider

Namespace

Drupal\Tests\Core\Entity\Routing

Code

public function getCanonicalRoute(EntityTypeInterface $entity_type) {
    return parent::getCanonicalRoute($entity_type);
}

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