Skip to content
Snippets Groups Projects
Commit ff79d9d1 authored by catch's avatar catch
Browse files

Issue #678594 by linclark, mlncn, kathyh: Fix RDFa markup for file/image formatters.

parent e0b74b5b
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -781,6 +781,9 @@ function rdf_field_attach_view_alter(&$output, $context) {
* Implements MODULE_preprocess_HOOK().
*/
function rdf_preprocess_image(&$variables) {
// Adds the RDF type for image. We cannot use the usual entity-based mapping
// to get 'foaf:Image' because image does not have its own entity type or
// bundle.
$variables['attributes']['typeof'] = array('foaf:Image');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment