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
Add a rel=type link header to Node and Media GET responses for each rdf:type defined in the rdf mapping for its respective bundle.
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"'], ]; }
Media don't have a specific alter, but you can use hook_entity_view_alter to achieve the same effect.
hook_entity_view_alter
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Add a rel=type link header to Node and Media GET responses for each rdf:type defined in the rdf mapping for its respective bundle.
You have access to the node and can add link headers in
hook_node_view_alter
like so:Media don't have a specific alter, but you can use
hook_entity_view_alter
to achieve the same effect.The text was updated successfully, but these errors were encountered: