function rdf_preprocess_html

rdf_preprocess_html(&$variables)

Implements hook_preprocess_HOOK() for HTML document templates.

File

core/modules/rdf/rdf.module, line 265
Enables semantically enriched output for Drupal sites in the form of RDFa.

Code

function rdf_preprocess_html(&$variables) {
  // Adds RDF namespace prefix bindings in the form of an RDFa 1.1 prefix
  // attribute inside the html element.
  if (!isset($variables['html_attributes']['prefix'])) {
    $variables['html_attributes']['prefix'] = array();
  }
  foreach (rdf_get_namespaces() as $prefix => $uri) {
    $variables['html_attributes']['prefix'][] = $prefix . ': ' . $uri . " ";
  }
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!rdf!rdf.module/function/rdf_preprocess_html/8.1.x