We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Every time a node is viewed, check to see if it has field_obj, and if it does, add the url to referenced entity as a link header.
field_obj
You have access to the node and can add link headers in hook_node_view_alter like so:
hook_node_view_alter
function islandora_node_view_alter(&$build, EntityInterface $node, EntityViewDisplay $display) { $build['#attached']['http_header'] = [ ['Link', '<http://islandora.ca>; rel="awesome"'], ]; }
We don't have any defined rel types at the moment, so just use something like obj and we'll mint something official in a subsequent ticket.
obj
The text was updated successfully, but these errors were encountered:
Closing since I'm about to make a batch of tickets to supersede this and then some.
Sorry, something went wrong.
No branches or pull requests
Every time a node is viewed, check to see if it has
field_obj
, and if it does, add the url to referenced entity as a link header.You have access to the node and can add link headers in
hook_node_view_alter
like so:We don't have any defined rel types at the moment, so just use something like
obj
and we'll mint something official in a subsequent ticket.The text was updated successfully, but these errors were encountered: