function hal_test_hal_relation_uri_alter

Same name in other branches
  1. 8.9.x core/modules/hal/tests/modules/hal_test/hal_test.module \hal_test_hal_relation_uri_alter()

Implements hook_hal_relation_uri_alter().

File

core/modules/hal/tests/modules/hal_test/hal_test.module, line 20

Code

function hal_test_hal_relation_uri_alter(&$uri, $context = []) {
    if (!empty($context['hal_test'])) {
        $uri = 'hal_test_relation';
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.