2 * Implements hook_hal_type_uri_alter().
4 function {{ machine_name }}_hal_type_uri_alter(&$uri, $context = []) {
5 if ($context['mymodule'] == TRUE) {
6 $base = \Drupal::config('hal.settings')->get('link_domain');
7 $uri = str_replace($base, 'http://mymodule.domain', $uri);