You are here

public function TestDefaultHtmlRouteProvider::getEntityTypeIdKeyType in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/Entity/Routing/DefaultHtmlRouteProviderTest.php \Drupal\Tests\Core\Entity\Routing\TestDefaultHtmlRouteProvider::getEntityTypeIdKeyType()
  2. 10 core/tests/Drupal/Tests/Core/Entity/Routing/DefaultHtmlRouteProviderTest.php \Drupal\Tests\Core\Entity\Routing\TestDefaultHtmlRouteProvider::getEntityTypeIdKeyType()

Gets the type of the ID key for a given entity type.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: An entity type.

Return value

string|null The type of the ID key for a given entity type, or NULL if the entity type does not support fields.

Overrides DefaultHtmlRouteProvider::getEntityTypeIdKeyType

File

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

Class

TestDefaultHtmlRouteProvider

Namespace

Drupal\Tests\Core\Entity\Routing

Code

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