protected property OgRouteGroupResolverTestBase::$linkTemplates in Organic groups 8
A list of link templates that belong to entity types used in the tests.
This mocks the data returned by EntityTypeInterface::getLinkTemplates().
A list of link templates, keyed by entity type ID.
Type: array
See also
\Drupal\Core\Entity\EntityTypeInterface::getLinkTemplates()
File
- tests/
src/ Unit/ Plugin/ OgGroupResolver/ OgRouteGroupResolverTestBase.php, line 28
Class
- OgRouteGroupResolverTestBase
- Base class for testing OgGroupResolver plugins that depend on the route.
Namespace
Drupal\Tests\og\Unit\Plugin\OgGroupResolverCode
protected $linkTemplates = [
'node' => [
'canonical' => '/node/{node}',
'delete-form' => '/node/{node}/delete',
'edit-form' => '/node/{node}/edit',
'version-history' => '/node/{node}/revisions',
'revision' => '/node/{node}/revisions/{node_revision}/view',
],
'entity_test' => [
'canonical' => '/entity_test/{entity_test}',
'add-form' => '/entity_test/add',
'edit-form' => '/entity_test/manage/{entity_test}/edit',
'delete-form' => '/entity_test/delete/entity_test/{entity_test}',
],
'taxonomy_term' => [
'canonical' => '/taxonomy/term/{taxonomy_term}',
'delete-form' => '/taxonomy/term/{taxonomy_term}/delete',
'edit-form' => '/taxonomy/term/{taxonomy_term}/edit',
],
];