You are here

function rdf_theme in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/rdf/rdf.module \rdf_theme()
  2. 7 modules/rdf/rdf.module \rdf_theme()

Implements hook_theme().

File

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

Code

function rdf_theme() {
  return [
    'rdf_wrapper' => [
      'variables' => [
        'attributes' => [],
        'content' => NULL,
      ],
    ],
    'rdf_metadata' => [
      'variables' => [
        'metadata' => [],
      ],
    ],
  ];
}