rdf_preprocess_image(&$variables)
Implements hook_preprocess_HOOK() for image.html.twig.
File
- core/modules/rdf/rdf.module, line 572
- Enables semantically enriched output for Drupal sites in the form of RDFa.
Code
1 2 3 4 5 6 | 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' ); } |
Please login to continue.