Updated all the contrib modules to their latest versions.
[yaffs-website] / web / modules / contrib / metatag / metatag_open_graph / metatag_open_graph.module
index 46621e46b72494f1372026095dda46540637e35c..fa5ffa70749881da3a4ba93837f77c4a3ac9a529 100644 (file)
@@ -21,18 +21,10 @@ function metatag_open_graph_preprocess_html(&$variables) {
   $namespaces = [];
   if (!\Drupal::moduleHandler()->moduleExists('rdf')) {
     $namespaces = [
-      'xmlns:dc' => 'http://purl.org/dc/terms/',
-      'xmlns:og' => 'http://ogp.me/ns#',
+      'prefix' => 'og: http://ogp.me/ns#',
     ];
   }
 
-  // Namespaces for OpenGraph.
-  $namespaces['xmlns:article'] = "http://ogp.me/ns/article#";
-  $namespaces['xmlns:book'] = "http://ogp.me/ns/book#";
-  $namespaces['xmlns:product'] = "http://ogp.me/ns/product#";
-  $namespaces['xmlns:profile'] = "http://ogp.me/ns/profile#";
-  $namespaces['xmlns:video'] = "http://ogp.me/ns/video#";
-
   // Namespaces for Google+.
   if (isset($variables['itemtype'])) {
     $namespaces['itemscope'] = '';