function hal_test_rest_type_uri_alter
Implements hook_rest_type_uri_alter().
Deprecated
Kept only for BC test coverage, see \Drupal\Tests\hal\Kernel\HalLinkManagerTest::testGetTypeUri().
See also
https://www.drupal.org/node/2830467
File
-
core/
modules/ hal/ tests/ modules/ hal_test/ hal_test.module, line 33
Code
function hal_test_rest_type_uri_alter(&$uri, $context = []) {
if (!empty($context['rest_test'])) {
$uri = 'rest_test_type';
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.