function hal_test_hal_relation_uri_alter in Drupal 8
Same name and namespace in other branches
- 9 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 - Contains hook implementations for testing HAL module.
Code
function hal_test_hal_relation_uri_alter(&$uri, $context = []) {
if (!empty($context['hal_test'])) {
$uri = 'hal_test_relation';
}
}