hal_test.module

Same filename in other branches
  1. 8.9.x core/modules/hal/tests/modules/hal_test/hal_test.module

Contains hook implementations for testing HAL module.

File

core/modules/hal/tests/modules/hal_test/hal_test.module

View source
<?php


/**
 * @file
 * Contains hook implementations for testing HAL module.
 */

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

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

Functions

Title Deprecated Summary
hal_test_hal_relation_uri_alter Implements hook_hal_relation_uri_alter().
hal_test_hal_type_uri_alter Implements hook_hal_type_uri_alter().

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