hook_rest_relation_uri_alter

function hook_rest_relation_uri_alter

hook_rest_relation_uri_alter(&$uri, $context = array())

Alter the REST relation URI.

Modules may wish to alter the relation URI generated for a resource based on the context of the serializer/normalizer operation.

Parameters

string $uri: The URI to alter.

array $context: The context from the serializer/normalizer operation.

See also

\Symfony\Component\Serializer\SerializerInterface::serialize()

登录查看完整内容