You are here

function hal_test_hal_type_uri_alter in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/hal/tests/modules/hal_test/hal_test.module \hal_test_hal_type_uri_alter()

Implements hook_hal_type_uri_alter().

File

core/modules/hal/tests/modules/hal_test/hal_test.module, line 11
Contains hook implementations for testing HAL module.

Code

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