5 * Contains hook implementations for testing HAL module.
9 * Implements hook_hal_type_uri_alter().
11 function hal_test_hal_type_uri_alter(&$uri, $context = []) {
12 if (!empty($context['hal_test'])) {
13 $uri = 'hal_test_type';
18 * Implements hook_hal_relation_uri_alter().
20 function hal_test_hal_relation_uri_alter(&$uri, $context = []) {
21 if (!empty($context['hal_test'])) {
22 $uri = 'hal_test_relation';
27 * Implements hook_rest_type_uri_alter().
29 * @deprecated Kept only for BC test coverage, see \Drupal\Tests\hal\Kernel\HalLinkManagerTest::testGetTypeUri().
31 function hal_test_rest_type_uri_alter(&$uri, $context = []) {
32 if (!empty($context['rest_test'])) {
33 $uri = 'rest_test_type';
38 * Implements hook_rest_relation_uri_alter().
40 * @deprecated Kept only for BC test coverage, see \Drupal\Tests\hal\Kernel\HalLinkManagerTest::testGetRelationUri().
42 function hal_test_rest_relation_uri_alter(&$uri, $context = []) {
43 if (!empty($context['rest_test'])) {
44 $uri = 'rest_test_relation';