From 42a7743550520d2d5cb276e6c9b803b26c0e1513 Mon Sep 17 00:00:00 2001 From: catch <catch@35733.no-reply.drupal.org> Date: Sat, 13 Aug 2022 11:27:10 +0900 Subject: [PATCH] Issue #3302984 by longwave, smustgrave, quietone, Spokje: Remove RDF module from Umami --- .../install/rdf.mapping.node.article.yml | 38 ------------------- .../config/install/rdf.mapping.node.page.yml | 33 ---------------- .../rdf.mapping.taxonomy_term.tags.yml | 19 ---------- core/profiles/demo_umami/demo_umami.info.yml | 1 - .../classy/misc/rdf-metadata.html.twig | 20 ---------- .../Core/Theme/ConfirmClassyCopiesTest.php | 1 - 6 files changed, 112 deletions(-) delete mode 100644 core/profiles/demo_umami/config/install/rdf.mapping.node.article.yml delete mode 100644 core/profiles/demo_umami/config/install/rdf.mapping.node.page.yml delete mode 100644 core/profiles/demo_umami/config/install/rdf.mapping.taxonomy_term.tags.yml delete mode 100644 core/profiles/demo_umami/themes/umami/templates/classy/misc/rdf-metadata.html.twig diff --git a/core/profiles/demo_umami/config/install/rdf.mapping.node.article.yml b/core/profiles/demo_umami/config/install/rdf.mapping.node.article.yml deleted file mode 100644 index 3277bd4f0a07..000000000000 --- a/core/profiles/demo_umami/config/install/rdf.mapping.node.article.yml +++ /dev/null @@ -1,38 +0,0 @@ -langcode: en -status: true -dependencies: - config: - - node.type.article - module: - - node -id: node.article -targetEntityType: node -bundle: article -types: - - 'schema:Article' -fieldMappings: - title: - properties: - - 'schema:name' - created: - properties: - - 'schema:dateCreated' - datatype_callback: - callable: 'Drupal\rdf\CommonDataConverter::dateIso8601Value' - changed: - properties: - - 'schema:dateModified' - datatype_callback: - callable: 'Drupal\rdf\CommonDataConverter::dateIso8601Value' - body: - properties: - - 'schema:text' - uid: - properties: - - 'schema:author' - field_image: - properties: - - 'schema:image' - field_tags: - properties: - - 'schema:about' diff --git a/core/profiles/demo_umami/config/install/rdf.mapping.node.page.yml b/core/profiles/demo_umami/config/install/rdf.mapping.node.page.yml deleted file mode 100644 index c5152369b0c3..000000000000 --- a/core/profiles/demo_umami/config/install/rdf.mapping.node.page.yml +++ /dev/null @@ -1,33 +0,0 @@ -langcode: en -status: true -dependencies: - config: - - node.type.page - module: - - node -id: node.page -targetEntityType: node -bundle: page -types: - - 'schema:WebPage' -fieldMappings: - title: - properties: - - 'schema:name' - created: - properties: - - 'schema:dateCreated' - datatype_callback: - callable: 'Drupal\rdf\CommonDataConverter::dateIso8601Value' - changed: - properties: - - 'schema:dateModified' - datatype_callback: - callable: 'Drupal\rdf\CommonDataConverter::dateIso8601Value' - body: - properties: - - 'schema:text' - uid: - properties: - - 'schema:author' - mapping_type: rel diff --git a/core/profiles/demo_umami/config/install/rdf.mapping.taxonomy_term.tags.yml b/core/profiles/demo_umami/config/install/rdf.mapping.taxonomy_term.tags.yml deleted file mode 100644 index 46b43f15f3da..000000000000 --- a/core/profiles/demo_umami/config/install/rdf.mapping.taxonomy_term.tags.yml +++ /dev/null @@ -1,19 +0,0 @@ -langcode: en -status: true -dependencies: - config: - - taxonomy.vocabulary.tags - module: - - taxonomy -id: taxonomy_term.tags -targetEntityType: taxonomy_term -bundle: tags -types: - - 'schema:Thing' -fieldMappings: - name: - properties: - - 'schema:name' - description: - properties: - - 'schema:description' diff --git a/core/profiles/demo_umami/demo_umami.info.yml b/core/profiles/demo_umami/demo_umami.info.yml index 471e21d8e9be..dd922e82ddc4 100644 --- a/core/profiles/demo_umami/demo_umami.info.yml +++ b/core/profiles/demo_umami/demo_umami.info.yml @@ -34,7 +34,6 @@ install: - toolbar - field_ui - file - - rdf - views - views_ui - tour diff --git a/core/profiles/demo_umami/themes/umami/templates/classy/misc/rdf-metadata.html.twig b/core/profiles/demo_umami/themes/umami/templates/classy/misc/rdf-metadata.html.twig deleted file mode 100644 index acc62df16d41..000000000000 --- a/core/profiles/demo_umami/themes/umami/templates/classy/misc/rdf-metadata.html.twig +++ /dev/null @@ -1,20 +0,0 @@ -{# -/** - * @file - * Theme override for empty spans with RDF attributes. - * - * The XHTML+RDFa doctype allows either <span></span> or <span /> syntax to - * be used, but for maximum browser compatibility, W3C recommends the - * former when serving pages using the text/html media type, see - * http://www.w3.org/TR/xhtml1/#C_3. - * - * Available variables: - * - metadata: Each item within corresponds to its own set of attributes, - * and therefore, needs its own 'attributes' element. - * - * @see template_preprocess_rdf_metadata() - */ -#} -{% for attributes in metadata %} - <span{{ attributes.addClass('rdf-meta', 'hidden') }}></span> -{% endfor %} diff --git a/core/tests/Drupal/KernelTests/Core/Theme/ConfirmClassyCopiesTest.php b/core/tests/Drupal/KernelTests/Core/Theme/ConfirmClassyCopiesTest.php index b58ec3dcb742..44f72cd41e2e 100644 --- a/core/tests/Drupal/KernelTests/Core/Theme/ConfirmClassyCopiesTest.php +++ b/core/tests/Drupal/KernelTests/Core/Theme/ConfirmClassyCopiesTest.php @@ -179,7 +179,6 @@ public function providerTestClassyCopies() { 'file-managed-file.html.twig', 'text-format-wrapper.html.twig', 'filter-caption.html.twig', - 'rdf-metadata.html.twig', 'help-section.html.twig', 'progress-bar.html.twig', 'form-element-label.html.twig', -- GitLab