Browse Source

added unique_content_field_validation

bach 3 years ago
parent
commit
e0bb0d378a

+ 1 - 0
composer.json

@@ -82,6 +82,7 @@
         "drupal/translate_side_by_side": "^1.x-dev",
         "drupal/translation_views": "^1.x-dev",
         "drupal/ultimate_cron": "^2.x-dev",
+        "drupal/unique_content_field_validation": "^1.0",
         "drupal/url_to_video_filter": "^2.0",
         "drupal/views_conditional": "^1.x-dev",
         "drupal/views_ef_fieldset": "^1.5",

+ 47 - 1
composer.lock

@@ -4,7 +4,7 @@
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
         "This file is @generated automatically"
     ],
-    "content-hash": "1e49937988bac1ead488e004a9fb2d47",
+    "content-hash": "32cc18b06495257f2356216dd7982794",
     "packages": [
         {
             "name": "alchemy/zippy",
@@ -11935,6 +11935,52 @@
             },
             "time": "2020-09-24T06:25:51+00:00"
         },
+        {
+            "name": "drupal/unique_content_field_validation",
+            "version": "1.0.2",
+            "source": {
+                "type": "git",
+                "url": "https://git.drupalcode.org/project/unique_content_field_validation.git",
+                "reference": "1.0.2"
+            },
+            "dist": {
+                "type": "zip",
+                "url": "https://ftp.drupal.org/files/projects/unique_content_field_validation-1.0.2.zip",
+                "reference": "1.0.2",
+                "shasum": "41766f716a357ff5afeb2f81b5a2898fbaaf19ce"
+            },
+            "require": {
+                "drupal/core": "^8 || ^9"
+            },
+            "type": "drupal-module",
+            "extra": {
+                "drupal": {
+                    "version": "1.0.2",
+                    "datestamp": "1612474709",
+                    "security-coverage": {
+                        "status": "not-covered",
+                        "message": "Project has not opted into security advisory coverage!"
+                    }
+                }
+            },
+            "notification-url": "https://packages.drupal.org/8/downloads",
+            "license": [
+                "GPL-2.0+"
+            ],
+            "authors": [
+                {
+                    "name": "Fabian Sierra",
+                    "homepage": "https://www.drupal.org/u/fabiansierra5191",
+                    "role": "Maintainer"
+                }
+            ],
+            "description": "Validate the uniqueness of the entities fields or title.",
+            "homepage": "http://drupal.org/project/unique_content_field_validation",
+            "support": {
+                "source": "https://cgit.drupalcode.org/unique_content_field_validation",
+                "issues": "https://drupal.org/project/issues/unique_content_field_validation"
+            }
+        },
         {
             "name": "drupal/url_to_video_filter",
             "version": "2.0.0",

+ 1 - 0
config/sync/core.extension.yml

@@ -182,6 +182,7 @@ module:
   translation_views: 0
   typed_data: 0
   ultimate_cron: 0
+  unique_content_field_validation: 0
   update: 0
   url_to_video_filter: 0
   user: 0

+ 8 - 0
config/sync/field.field.node.materiau.field_linked_articles.yml

@@ -6,6 +6,14 @@ dependencies:
     - field.storage.node.field_linked_articles
     - node.type.article
     - node.type.materiau
+  module:
+    - unique_content_field_validation
+third_party_settings:
+  unique_content_field_validation:
+    unique: false
+    unique_text: ''
+    unique_multivalue: true
+    unique_multivalue_text: '%value appears more than once in %label'
 id: node.materiau.field_linked_articles
 field_name: field_linked_articles
 entity_type: node

+ 8 - 0
config/sync/field.field.node.materiau.field_linked_materials.yml

@@ -5,6 +5,14 @@ dependencies:
   config:
     - field.storage.node.field_linked_materials
     - node.type.materiau
+  module:
+    - unique_content_field_validation
+third_party_settings:
+  unique_content_field_validation:
+    unique: false
+    unique_text: ''
+    unique_multivalue: true
+    unique_multivalue_text: '%value appears more than once in %label'
 id: node.materiau.field_linked_materials
 field_name: field_linked_materials
 entity_type: node

+ 8 - 0
config/sync/field.field.node.thematique.field_linked_articles.yml

@@ -6,6 +6,14 @@ dependencies:
     - field.storage.node.field_linked_articles
     - node.type.article
     - node.type.thematique
+  module:
+    - unique_content_field_validation
+third_party_settings:
+  unique_content_field_validation:
+    unique: false
+    unique_text: ''
+    unique_multivalue: true
+    unique_multivalue_text: '%value appears more than once in %label'
 id: node.thematique.field_linked_articles
 field_name: field_linked_articles
 entity_type: node

+ 8 - 0
config/sync/field.field.node.thematique.field_linked_materials.yml

@@ -6,6 +6,14 @@ dependencies:
     - field.storage.node.field_linked_materials
     - node.type.materiau
     - node.type.thematique
+  module:
+    - unique_content_field_validation
+third_party_settings:
+  unique_content_field_validation:
+    unique: false
+    unique_text: ''
+    unique_multivalue: true
+    unique_multivalue_text: '%value appears more than once in %label'
 id: node.thematique.field_linked_materials
 field_name: field_linked_materials
 entity_type: node

+ 4 - 0
config/sync/field.storage.node.field_linked_materials.yml

@@ -3,7 +3,11 @@ langcode: en
 status: true
 dependencies:
   module:
+    - field_permissions
     - node
+third_party_settings:
+  field_permissions:
+    permission_type: public
 id: node.field_linked_materials
 field_name: field_linked_materials
 entity_type: node

+ 6 - 6
config/sync/language/fr/views.view.commerce_order_item_table.yml

@@ -1,8 +1,10 @@
-label: 'Eléments de la commande'
 display:
   default:
-    display_title: Maître
     display_options:
+      arguments:
+        order_id:
+          exception:
+            title: Tout
       exposed_form:
         options:
           submit_button: Appliquer
@@ -23,7 +25,5 @@ display:
         total_price__number:
           label: 'Prix total'
           separator: ', '
-      arguments:
-        order_id:
-          exception:
-            title: Tout
+    display_title: Maître
+label: 'Eléments de la commande'