You are here

protected function OgRouteGroupResolverTestBase::getLinkTemplates in Organic groups 8

Returns a set of entity link templates for testing.

This mimicks the data returned by EntityTypeInterface::getLinkTemplates().

Parameters

string $entity_type: The entity type for which to return the link templates.

Return value

array An array of link templates.

See also

\Drupal\Core\Entity\EntityTypeInterface::getLinkTemplates()

File

tests/src/Unit/Plugin/OgGroupResolver/OgRouteGroupResolverTestBase.php, line 145

Class

OgRouteGroupResolverTestBase
Base class for testing OgGroupResolver plugins that depend on the route.

Namespace

Drupal\Tests\og\Unit\Plugin\OgGroupResolver

Code

protected function getLinkTemplates($entity_type) {
  return $this->linkTemplates[$entity_type];
}