class TestDefaultHtmlRouteProvider
Stub class for testing DefaultHtmlRouteProvider.
Hierarchy
- class \Drupal\Core\Entity\Routing\DefaultHtmlRouteProvider implements \Drupal\Core\Entity\Routing\EntityRouteProviderInterface, \Drupal\Core\Entity\EntityHandlerInterface- class \Drupal\Tests\Core\Entity\Routing\TestDefaultHtmlRouteProvider extends \Drupal\Core\Entity\Routing\DefaultHtmlRouteProvider
 
Expanded class hierarchy of TestDefaultHtmlRouteProvider
File
- 
              core/tests/ Drupal/ Tests/ Core/ Entity/ Routing/ DefaultHtmlRouteProviderTest.php, line 421 
Namespace
Drupal\Tests\Core\Entity\RoutingView source
class TestDefaultHtmlRouteProvider extends DefaultHtmlRouteProvider {
  public function getEntityTypeIdKeyType(EntityTypeInterface $entity_type) {
    return parent::getEntityTypeIdKeyType($entity_type);
  }
  public function getAddPageRoute(EntityTypeInterface $entity_type) {
    return parent::getAddPageRoute($entity_type);
  }
  public function getAddFormRoute(EntityTypeInterface $entity_type) {
    return parent::getAddFormRoute($entity_type);
  }
  public function getCanonicalRoute(EntityTypeInterface $entity_type) {
    return parent::getCanonicalRoute($entity_type);
  }
  public function getCollectionRoute(EntityTypeInterface $entity_type) {
    return parent::getCollectionRoute($entity_type);
  }
}Members
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
