You are here

class TestDefaultHtmlRouteProvider in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Entity/Routing/DefaultHtmlRouteProviderTest.php \Drupal\Tests\Core\Entity\Routing\TestDefaultHtmlRouteProvider

Hierarchy

Expanded class hierarchy of TestDefaultHtmlRouteProvider

File

core/tests/Drupal/Tests/Core/Entity/Routing/DefaultHtmlRouteProviderTest.php, line 354
Contains \Drupal\Tests\Core\Entity\Routing\DefaultHtmlRouteProviderTest.

Namespace

Drupal\Tests\Core\Entity\Routing
View 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

Namesort descending Modifiers Type Description Overrides
DefaultHtmlRouteProvider::$entityFieldManager protected property The entity field manager.
DefaultHtmlRouteProvider::$entityTypeManager protected property The entity type manager.
DefaultHtmlRouteProvider::createInstance public static function Instantiates a new instance of this entity handler. Overrides EntityHandlerInterface::createInstance 1
DefaultHtmlRouteProvider::getDeleteFormRoute protected function Gets the delete-form route. 1
DefaultHtmlRouteProvider::getDeleteMultipleFormRoute protected function Returns the delete multiple form route. 1
DefaultHtmlRouteProvider::getEditFormRoute protected function Gets the edit-form route. 1
DefaultHtmlRouteProvider::getRoutes public function Provides routes for entities. Overrides EntityRouteProviderInterface::getRoutes 1
DefaultHtmlRouteProvider::__construct public function Constructs a new DefaultHtmlRouteProvider. 1
TestDefaultHtmlRouteProvider::getAddFormRoute public function Gets the add-form route. Overrides DefaultHtmlRouteProvider::getAddFormRoute
TestDefaultHtmlRouteProvider::getAddPageRoute public function Gets the add page route. Overrides DefaultHtmlRouteProvider::getAddPageRoute
TestDefaultHtmlRouteProvider::getCanonicalRoute public function Gets the canonical route. Overrides DefaultHtmlRouteProvider::getCanonicalRoute
TestDefaultHtmlRouteProvider::getCollectionRoute public function Gets the collection route. Overrides DefaultHtmlRouteProvider::getCollectionRoute
TestDefaultHtmlRouteProvider::getEntityTypeIdKeyType public function Gets the type of the ID key for a given entity type. Overrides DefaultHtmlRouteProvider::getEntityTypeIdKeyType