Compare commits

..

No commits in common. "8b88b3e349d6c6b0e10817778475092b7c9058f0" and "30476585f64680e421e20e501fe94840d8300d8d" have entirely different histories.

80 changed files with 271 additions and 2128 deletions

View File

@ -16,7 +16,6 @@
],
"require": {
"composer/installers": "^1.9",
"drupal/address": "^1",
"drupal/admin_toolbar_content": "^1.3",
"drupal/administerusersbyrole": "^3.3",
"drupal/amswap": "^3",
@ -40,7 +39,6 @@
"drupal/terms_of_use": "^2.3",
"drupal/typed_data": "1.x-dev@dev",
"drupal/views_ef_fieldset": "^1.5",
"drupal/workflow": "^1.7",
"wikimedia/composer-merge-plugin": "^2.0"
},
"conflict": {

78
src/composer.lock generated
View File

@ -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": "f3baae79e847c753ab9ac766f4338529",
"content-hash": "1234977008c156a5217d6a92e17aa1df",
"packages": [
{
"name": "alchemy/zippy",
@ -8986,82 +8986,6 @@
"source": "https://git.drupalcode.org/project/views_ef_fieldset"
}
},
{
"name": "drupal/workflow",
"version": "1.7.0",
"source": {
"type": "git",
"url": "https://git.drupalcode.org/project/workflow.git",
"reference": "8.x-1.7"
},
"dist": {
"type": "zip",
"url": "https://ftp.drupal.org/files/projects/workflow-8.x-1.7.zip",
"reference": "8.x-1.7",
"shasum": "f20b6f0273cd98ae3f6b25ea25b6159fa6345e89"
},
"require": {
"drupal/core": "^8.8 || ^9 || ^10"
},
"type": "drupal-module",
"extra": {
"drupal": {
"version": "8.x-1.7",
"datestamp": "1680019726",
"security-coverage": {
"status": "covered",
"message": "Covered by Drupal's security advisory policy"
}
}
},
"notification-url": "https://packages.drupal.org/8/downloads",
"license": [
"GPL-2.0-or-later"
],
"authors": [
{
"name": "Bastlynn",
"homepage": "https://www.drupal.org/user/275249"
},
{
"name": "eaton",
"homepage": "https://www.drupal.org/user/16496"
},
{
"name": "Heine",
"homepage": "https://www.drupal.org/user/17943"
},
{
"name": "JacobSingh",
"homepage": "https://www.drupal.org/user/68912"
},
{
"name": "johnv",
"homepage": "https://www.drupal.org/user/591042"
},
{
"name": "jvandyk",
"homepage": "https://www.drupal.org/user/2375"
},
{
"name": "mfredrickson",
"homepage": "https://www.drupal.org/user/31994"
},
{
"name": "NancyDru",
"homepage": "https://www.drupal.org/user/101412"
},
{
"name": "q0rban",
"homepage": "https://www.drupal.org/user/31022"
}
],
"description": "Defines a field type with Workflows, containing customizable state transitions.",
"homepage": "https://www.drupal.org/project/workflow",
"support": {
"source": "https://git.drupalcode.org/project/workflow"
}
},
{
"name": "drush/drush",
"version": "10.6.2",

View File

@ -3,12 +3,10 @@ langcode: fr
status: true
dependencies:
config:
- field.field.group.bourgeon.field_adresse
- field.field.group.bourgeon.field_description
- field.field.group.bourgeon.field_structure
- group.type.bourgeon
module:
- address
- autocomplete_deluxe
- field_group
- text
@ -20,7 +18,7 @@ third_party_settings:
label: Details
region: content
parent_name: ''
weight: 4
weight: 3
format_type: details_sidebar
format_settings:
classes: ''
@ -35,15 +33,9 @@ targetEntityType: group
bundle: bourgeon
mode: default
content:
field_adresse:
type: address_default
weight: 2
region: content
settings: { }
third_party_settings: { }
field_description:
type: text_textarea_with_summary
weight: 3
weight: 2
region: content
settings:
rows: 9

View File

@ -4,10 +4,8 @@ status: true
dependencies:
config:
- field.field.node.concernement.field_caillou
- field.field.node.concernement.field_confidentialite
- field.field.node.concernement.field_description
- field.field.node.concernement.field_entite
- field.field.node.concernement.field_lieu
- field.field.node.concernement.field_recit
- node.type.concernement
module:
@ -16,7 +14,6 @@ dependencies:
- file
- maxlength
- paragraphs
- workflow
third_party_settings:
field_group:
group_tabs:
@ -24,8 +21,9 @@ third_party_settings:
- group_contenu
- group_entites
- group_recit
- group_ateliers
- group_confidentialite
- status
- uid
- created
label: Tabs
region: content
parent_name: ''
@ -84,36 +82,6 @@ third_party_settings:
formatter: closed
description: ''
required_fields: true
group_ateliers:
children:
- field_lieu
label: Ateliers
region: content
parent_name: group_tabs
weight: 15
format_type: tab
format_settings:
classes: ''
show_empty_fields: false
id: ''
formatter: closed
description: ''
required_fields: true
group_confidentialite:
children:
- field_confidentialite
label: Confidentialité
region: content
parent_name: group_tabs
weight: 16
format_type: tab
format_settings:
classes: ''
show_empty_fields: false
id: ''
formatter: closed
description: ''
required_fields: true
id: node.concernement.default
targetEntityType: node
bundle: concernement
@ -121,7 +89,7 @@ mode: default
content:
created:
type: datetime_timestamp
weight: 3
weight: 17
region: content
settings: { }
third_party_settings: { }
@ -133,12 +101,6 @@ content:
rows: 5
placeholder: ''
third_party_settings: { }
field_confidentialite:
type: workflow_default
weight: 20
region: content
settings: { }
third_party_settings: { }
field_description:
type: string_textarea
weight: 1
@ -159,16 +121,6 @@ content:
form_display_mode: default
default_paragraph_type: ''
third_party_settings: { }
field_lieu:
type: entity_reference_autocomplete
weight: 26
region: content
settings:
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
third_party_settings: { }
field_recit:
type: file_generic
weight: 3
@ -178,7 +130,7 @@ content:
third_party_settings: { }
status:
type: boolean_checkbox
weight: 1
weight: 15
region: content
settings:
display_label: true
@ -198,7 +150,7 @@ content:
show_token_tree: 0
uid:
type: entity_reference_autocomplete
weight: 2
weight: 16
region: content
settings:
match_operator: CONTAINS

View File

@ -4,19 +4,14 @@ status: true
dependencies:
config:
- field.field.node.entite.field_action
- field.field.node.entite.field_confidentialite
- field.field.node.entite.field_entite_agissante
- field.field.node.entite.field_menace_maintien
- field.field.node.entite.field_proximite
- field.field.node.entite.field_sources
- field.field.node.entite.field_superposition
- node.type.entite
module:
- advanced_text_formatter
- field_group
- maxlength
- paragraphs
- workflow
third_party_settings:
field_group:
group_details:
@ -27,7 +22,7 @@ third_party_settings:
label: Details
region: content
parent_name: ''
weight: 1
weight: 4
format_type: details_sidebar
format_settings:
classes: ''
@ -37,87 +32,6 @@ third_party_settings:
description: ''
required_fields: true
weight: -100
group_tabs:
children:
- group_contenu
- group_superpositions
- group_proximites
- group_con
label: Tabs
region: content
parent_name: ''
weight: 0
format_type: tabs
format_settings:
classes: ''
show_empty_fields: false
id: ''
direction: horizontal
width_breakpoint: 640
group_contenu:
children:
- title
- field_entite_agissante
- field_action
- field_menace_maintien
- field_sources
label: Contenu
region: content
parent_name: group_tabs
weight: 13
format_type: tab
format_settings:
classes: ''
show_empty_fields: false
id: ''
formatter: open
description: ''
required_fields: true
group_proximites:
children:
- field_proximite
label: Proximités
region: content
parent_name: group_tabs
weight: 15
format_type: tab
format_settings:
classes: ''
show_empty_fields: false
id: ''
formatter: closed
description: ''
required_fields: true
group_superpositions:
children:
- field_superposition
label: Superpositions
region: content
parent_name: group_tabs
weight: 14
format_type: tab
format_settings:
classes: ''
show_empty_fields: false
id: ''
formatter: closed
description: ''
required_fields: true
group_con:
children:
- field_confidentialite
label: Confidentialité
region: content
parent_name: group_tabs
weight: 16
format_type: tab
format_settings:
classes: ''
show_empty_fields: false
id: ''
formatter: closed
description: ''
required_fields: true
id: node.entite.default
targetEntityType: node
bundle: entite
@ -130,6 +44,20 @@ content:
settings: { }
third_party_settings: { }
field_action:
type: string_textarea
weight: 1
region: content
settings:
rows: 8
placeholder: ''
third_party_settings:
maxlength:
maxlength_js: null
maxlength_js_label: 'Contenu limité à @limit caractères, restant : <strong>@remaining</strong>'
maxlength_js_enforce: false
advanced_text_formatter:
show_token_tree: 0
field_menace_maintien:
type: string_textarea
weight: 2
region: content
@ -143,46 +71,9 @@ content:
maxlength_js_enforce: false
advanced_text_formatter:
show_token_tree: 0
field_confidentialite:
type: workflow_default
weight: 32
region: content
settings: { }
third_party_settings: { }
field_entite_agissante:
type: boolean_checkbox
weight: 1
region: content
settings:
display_label: true
third_party_settings: { }
field_menace_maintien:
type: string_textarea
weight: 3
region: content
settings:
rows: 8
placeholder: ''
third_party_settings:
maxlength:
maxlength_js: null
maxlength_js_label: 'Contenu limité à @limit caractères, restant : <strong>@remaining</strong>'
maxlength_js_enforce: false
advanced_text_formatter:
show_token_tree: 0
field_proximite:
type: entity_reference_autocomplete
weight: 5
region: content
settings:
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
third_party_settings: { }
field_sources:
type: paragraphs
weight: 4
weight: 3
region: content
settings:
title: Paragraphe
@ -198,16 +89,6 @@ content:
collapse_edit_all: collapse_edit_all
duplicate: duplicate
third_party_settings: { }
field_superposition:
type: entity_reference_autocomplete
weight: 6
region: content
settings:
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
third_party_settings: { }
status:
type: boolean_checkbox
weight: 31

View File

@ -45,7 +45,6 @@ content:
collapsible: false
collapsed: false
revision: false
removed_reference: optional
third_party_settings: { }
field_menace_maintien_degres:
type: number

View File

@ -13,12 +13,13 @@ dependencies:
- image.style.thumbnail
- paragraphs.paragraphs_type.source
module:
- advanced_text_formatter
- datetime
- field_group
- file
- image
- link
- text
- maxlength
- video_embed_field
third_party_settings:
field_group:
@ -45,7 +46,7 @@ third_party_settings:
label: 'Experience vécue'
region: hidden
parent_name: ''
weight: 5
weight: 3
format_type: tab
format_settings:
classes: ''
@ -162,13 +163,19 @@ content:
settings: { }
third_party_settings: { }
field_description:
type: text_textarea
type: string_textarea
weight: 1
region: content
settings:
rows: 5
rows: 8
placeholder: ''
third_party_settings: { }
third_party_settings:
maxlength:
maxlength_js: null
maxlength_js_label: 'Contenu limité à @limit caractères, restant : <strong>@remaining</strong>'
maxlength_js_enforce: false
advanced_text_formatter:
show_token_tree: 0
field_documents:
type: file_generic
weight: 27

View File

@ -1,47 +0,0 @@
uuid: 807a1faf-6af6-497f-bef6-79a226dead1c
langcode: fr
status: true
dependencies:
config:
- field.field.taxonomy_term.lieu.field_adresse
- taxonomy.vocabulary.lieu
module:
- address
- text
id: taxonomy_term.lieu.default
targetEntityType: taxonomy_term
bundle: lieu
mode: default
content:
description:
type: text_textarea
weight: 2
region: content
settings:
rows: 5
placeholder: ''
third_party_settings: { }
field_adresse:
type: address_default
weight: 1
region: content
settings: { }
third_party_settings: { }
name:
type: string_textfield
weight: 0
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
status:
type: boolean_checkbox
weight: 3
region: content
settings:
display_label: true
third_party_settings: { }
hidden:
langcode: true
path: true

View File

@ -5,6 +5,7 @@ dependencies:
config:
- field.field.user.user.field_strucure
module:
- autocomplete_deluxe
- user
id: user.user.default
targetEntityType: user
@ -17,20 +18,21 @@ content:
settings: { }
third_party_settings: { }
field_strucure:
type: options_select
type: autocomplete_deluxe
weight: 2
region: content
settings: { }
third_party_settings: { }
regcode:
weight: 10
region: content
settings: { }
third_party_settings: { }
terms_of_use:
weight: 10
region: content
settings: { }
settings:
match_operator: CONTAINS
autocomplete_route_name: autocomplete_deluxe.autocomplete
size: 60
selection_handler: default
limit: 10
min_length: 0
delimiter: ''
not_found_message_allow: true
not_found_message: 'The term ''@term'' will be added'
new_terms: true
no_empty_message: 'No terms could be found. Please type in order to add a new term.'
third_party_settings: { }
hidden:
contact: true

View File

@ -1,13 +0,0 @@
uuid: 6a886e53-6d3a-459f-9a63-960832b9ba1c
langcode: fr
status: true
dependencies:
config:
- workflow.workflow.confidentialite
id: workflow_transition.confidentialite.default
targetEntityType: workflow_transition
bundle: confidentialite
mode: default
content: { }
hidden:
langcode: true

View File

@ -3,25 +3,16 @@ langcode: fr
status: true
dependencies:
config:
- field.field.group.bourgeon.field_adresse
- field.field.group.bourgeon.field_description
- field.field.group.bourgeon.field_structure
- group.type.bourgeon
module:
- address
- text
id: group.bourgeon.default
targetEntityType: group
bundle: bourgeon
mode: default
content:
field_adresse:
type: address_default
label: above
settings: { }
third_party_settings: { }
weight: -2
region: content
field_description:
type: text_default
label: above

View File

@ -4,16 +4,13 @@ status: true
dependencies:
config:
- field.field.node.concernement.field_caillou
- field.field.node.concernement.field_confidentialite
- field.field.node.concernement.field_description
- field.field.node.concernement.field_entite
- field.field.node.concernement.field_lieu
- field.field.node.concernement.field_recit
- node.type.concernement
module:
- entity_reference_revisions
- file
- options
- user
id: node.concernement.default
targetEntityType: node
@ -27,19 +24,12 @@ content:
third_party_settings: { }
weight: 105
region: content
field_confidentialite:
type: list_default
label: above
settings: { }
third_party_settings: { }
weight: 108
region: content
field_description:
type: basic_string
label: above
settings: { }
third_party_settings: { }
weight: 107
weight: 104
region: content
field_entite:
type: entity_reference_revisions_entity_view
@ -50,14 +40,6 @@ content:
third_party_settings: { }
weight: 102
region: content
field_lieu:
type: entity_reference_label
label: above
settings:
link: true
third_party_settings: { }
weight: 106
region: content
field_recit:
type: file_default
label: above

View File

@ -5,10 +5,8 @@ dependencies:
config:
- core.entity_view_mode.node.teaser
- field.field.node.concernement.field_caillou
- field.field.node.concernement.field_confidentialite
- field.field.node.concernement.field_description
- field.field.node.concernement.field_entite
- field.field.node.concernement.field_lieu
- field.field.node.concernement.field_recit
- node.type.concernement
module:
@ -25,10 +23,8 @@ content:
region: content
hidden:
field_caillou: true
field_confidentialite: true
field_description: true
field_entite: true
field_lieu: true
field_recit: true
langcode: true
search_api_excerpt: true

View File

@ -4,16 +4,11 @@ status: true
dependencies:
config:
- field.field.node.entite.field_action
- field.field.node.entite.field_confidentialite
- field.field.node.entite.field_entite_agissante
- field.field.node.entite.field_menace_maintien
- field.field.node.entite.field_proximite
- field.field.node.entite.field_sources
- field.field.node.entite.field_superposition
- node.type.entite
module:
- entity_reference_revisions
- options
- user
id: node.entite.default
targetEntityType: node
@ -27,23 +22,6 @@ content:
third_party_settings: { }
weight: 101
region: content
field_confidentialite:
type: list_default
label: above
settings: { }
third_party_settings: { }
weight: 107
region: content
field_entite_agissante:
type: boolean
label: above
settings:
format: default
format_custom_false: ''
format_custom_true: ''
third_party_settings: { }
weight: 106
region: content
field_menace_maintien:
type: basic_string
label: above
@ -51,14 +29,6 @@ content:
third_party_settings: { }
weight: 102
region: content
field_proximite:
type: entity_reference_label
label: above
settings:
link: true
third_party_settings: { }
weight: 104
region: content
field_sources:
type: entity_reference_revisions_entity_view
label: above
@ -68,14 +38,6 @@ content:
third_party_settings: { }
weight: 103
region: content
field_superposition:
type: entity_reference_label
label: above
settings:
link: true
third_party_settings: { }
weight: 105
region: content
links:
settings: { }
third_party_settings: { }

View File

@ -5,12 +5,8 @@ dependencies:
config:
- core.entity_view_mode.node.teaser
- field.field.node.entite.field_action
- field.field.node.entite.field_confidentialite
- field.field.node.entite.field_entite_agissante
- field.field.node.entite.field_menace_maintien
- field.field.node.entite.field_proximite
- field.field.node.entite.field_sources
- field.field.node.entite.field_superposition
- node.type.entite
module:
- user
@ -26,11 +22,7 @@ content:
region: content
hidden:
field_action: true
field_confidentialite: true
field_entite_agissante: true
field_menace_maintien: true
field_proximite: true
field_sources: true
field_superposition: true
langcode: true
search_api_excerpt: true

View File

@ -16,7 +16,6 @@ dependencies:
- file
- image
- link
- text
- video_embed_field
id: paragraph.source.default
targetEntityType: paragraph
@ -41,7 +40,7 @@ content:
weight: 6
region: content
field_description:
type: text_default
type: basic_string
label: above
settings: { }
third_party_settings: { }

View File

@ -1,32 +0,0 @@
uuid: 04164f73-d0f4-4f8d-8fae-d0c13e0d917b
langcode: fr
status: true
dependencies:
config:
- field.field.taxonomy_term.lieu.field_adresse
- taxonomy.vocabulary.lieu
module:
- address
- text
id: taxonomy_term.lieu.default
targetEntityType: taxonomy_term
bundle: lieu
mode: default
content:
description:
type: text_default
label: hidden
settings: { }
third_party_settings: { }
weight: 0
region: content
field_adresse:
type: address_default
label: above
settings: { }
third_party_settings: { }
weight: 1
region: content
hidden:
langcode: true
search_api_excerpt: true

View File

@ -3,7 +3,6 @@ _core:
langcode: fr
module:
actions_permissions: 0
address: 0
admin_menus: 0
admin_toolbar: 0
admin_toolbar_content: 0
@ -131,9 +130,6 @@ module:
views_bulk_operations: 0
views_ef_fieldset: 0
views_ui: 0
workflow: 0
workflow_access: 0
workflow_ui: 0
extlink: 1
filefield_sources: 1
menu_admin_per_menu: 1

View File

@ -14,9 +14,3 @@ definitions:
parent: admin_menus.contents
expanded: false
weight: 0
admin_menus__contents:
weight: -50
menu_name: administrator
parent: ''
enabled: true
expanded: false

View File

@ -1,31 +0,0 @@
uuid: 0b0d34c1-79eb-4ca6-807f-836f2851ecfb
langcode: fr
status: true
dependencies:
config:
- filter.format.linkonly
module:
- ckeditor
format: linkonly
editor: ckeditor
settings:
toolbar:
rows:
-
-
name: Liens
items:
- DrupalLink
- DrupalUnlink
plugins:
drupallink:
linkit_enabled: false
linkit_profile: ''
image_upload:
status: false
scheme: public
directory: inline-images
max_size: ''
max_dimensions:
width: null
height: null

View File

@ -1,59 +0,0 @@
uuid: 6232bf1a-c0f6-4d8c-9909-14d5f7c71b8b
langcode: fr
status: true
dependencies:
config:
- field.storage.group.field_adresse
- group.type.bourgeon
module:
- address
id: group.bourgeon.field_adresse
field_name: field_adresse
entity_type: group
bundle: bourgeon
label: Adresse
description: ''
required: false
translatable: false
default_value:
-
langcode: null
country_code: FR
administrative_area: null
locality: ''
dependent_locality: null
postal_code: ''
sorting_code: ''
address_line1: ''
address_line2: ''
organization: ''
given_name: ''
additional_name: null
family_name: ''
default_value_callback: ''
settings:
available_countries: { }
langcode_override: ''
field_overrides:
givenName:
override: hidden
additionalName:
override: hidden
familyName:
override: hidden
organization:
override: hidden
addressLine1:
override: hidden
addressLine2:
override: hidden
postalCode:
override: hidden
sortingCode:
override: hidden
dependentLocality:
override: hidden
administrativeArea:
override: hidden
fields: { }
field_type: address

View File

@ -1,22 +0,0 @@
uuid: e209c60c-6f97-44dc-b94a-ad5abcc6e51d
langcode: fr
status: true
dependencies:
config:
- field.storage.node.field_confidentialite
- node.type.concernement
module:
- workflow
id: node.concernement.field_confidentialite
field_name: field_confidentialite
entity_type: node
bundle: concernement
label: Confidentialité
description: "<b>Privé:</b> seul⋅e l'auteur⋅ice du contenu peut éditer et voir ce contenu<br/>\r\n<b>Interne:</b> seul⋅e l'auteur⋅ice du contenu peut éditer, les utilisateur⋅ice⋅s enregistré⋅e⋅s du site peuvent voir<br/>\r\n<b>Public:</b> seul⋅e l'auteur⋅ice du contenu peut éditer, tout le monde peut voir<br/>"
required: true
translatable: false
default_value:
- { }
default_value_callback: ''
settings: { }
field_type: workflow

View File

@ -1,4 +1,4 @@
uuid: 593f484f-0de7-49cb-9c09-d5c4c43c3235
uuid: 535ce9fa-7e1c-42b2-8b1a-10dc104e9603
langcode: fr
status: true
dependencies:

View File

@ -1,29 +0,0 @@
uuid: c642bfab-8c1b-4ca0-ad9a-f2bf9a6bdd14
langcode: fr
status: true
dependencies:
config:
- field.storage.node.field_lieu
- node.type.concernement
- taxonomy.vocabulary.lieu
id: node.concernement.field_lieu
field_name: field_lieu
entity_type: node
bundle: concernement
label: Lieu
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
handler: 'default:taxonomy_term'
handler_settings:
target_bundles:
lieu: lieu
sort:
field: name
direction: asc
auto_create: false
auto_create_bundle: ''
field_type: entity_reference

View File

@ -1,22 +0,0 @@
uuid: 6d797246-2a70-4a37-8990-5816e5976cc2
langcode: fr
status: true
dependencies:
config:
- field.storage.node.field_confidentialite
- node.type.entite
module:
- workflow
id: node.entite.field_confidentialite
field_name: field_confidentialite
entity_type: node
bundle: entite
label: Confidentialité
description: "<b>Privé:</b> seul⋅e l'auteur⋅ice du contenu peut éditer et voir ce contenu<br/>\r\n<b>Interne:</b> seul⋅e l'auteur⋅ice du contenu peut éditer, les utilisateur⋅ice⋅s enregistré⋅e⋅s du site peuvent voir<br/>\r\n<b>Public:</b> seul⋅e l'auteur⋅ice du contenu peut éditer, tout le monde peut voir<br/>"
required: true
translatable: true
default_value:
- { }
default_value_callback: ''
settings: { }
field_type: workflow

View File

@ -1,23 +0,0 @@
uuid: 40172a2e-56e3-40d1-92c1-8d0c911ee810
langcode: fr
status: true
dependencies:
config:
- field.storage.node.field_entite_agissante
- node.type.entite
id: node.entite.field_entite_agissante
field_name: field_entite_agissante
entity_type: node
bundle: entite
label: 'Entite action'
description: ''
required: false
translatable: false
default_value:
-
value: 0
default_value_callback: ''
settings:
on_label: Activé
off_label: Désactivé
field_type: boolean

View File

@ -1,28 +0,0 @@
uuid: 450ee658-81f3-418c-a443-7422c174b8b3
langcode: fr
status: true
dependencies:
config:
- field.storage.node.field_proximite
- node.type.entite
id: node.entite.field_proximite
field_name: field_proximite
entity_type: node
bundle: entite
label: Proximité
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
handler: 'default:node'
handler_settings:
target_bundles:
entite: entite
sort:
field: _none
direction: ASC
auto_create: false
auto_create_bundle: ''
field_type: entity_reference

View File

@ -1,28 +0,0 @@
uuid: f3d5d8f1-f419-485e-bd13-261b26d7bbb0
langcode: fr
status: true
dependencies:
config:
- field.storage.node.field_superposition
- node.type.entite
id: node.entite.field_superposition
field_name: field_superposition
entity_type: node
bundle: entite
label: Superposition
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
handler: 'default:node'
handler_settings:
target_bundles:
entite: entite
sort:
field: _none
direction: ASC
auto_create: false
auto_create_bundle: ''
field_type: entity_reference

View File

@ -21,7 +21,7 @@ settings:
handler: 'default:file'
handler_settings: { }
file_directory: '[date:custom:Y]-[date:custom:m]'
file_extensions: 'ogg mp3 flac'
file_extensions: ogg
max_filesize: ''
description_field: true
field_type: file

View File

@ -1,12 +1,10 @@
uuid: 16ebf1f1-c233-4449-94f1-5eb28eb7712c
uuid: d2ee1d58-0296-4f56-961f-6dac57ceb173
langcode: fr
status: true
dependencies:
config:
- field.storage.paragraph.field_description
- paragraphs.paragraphs_type.source
module:
- text
id: paragraph.source.field_description
field_name: field_description
entity_type: paragraph
@ -18,4 +16,4 @@ translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: text_long
field_type: string_long

View File

@ -1,47 +0,0 @@
uuid: 39fee0a0-22fc-46b2-80da-bc9cd16b740e
langcode: fr
status: true
dependencies:
config:
- field.storage.taxonomy_term.field_adresse
- taxonomy.vocabulary.lieu
module:
- address
id: taxonomy_term.lieu.field_adresse
field_name: field_adresse
entity_type: taxonomy_term
bundle: lieu
label: Adresse
description: ''
required: false
translatable: false
default_value:
-
langcode: null
country_code: FR
administrative_area: null
locality: ''
dependent_locality: null
postal_code: ''
sorting_code: ''
address_line1: ''
address_line2: ''
organization: ''
given_name: ''
additional_name: null
family_name: ''
default_value_callback: ''
settings:
available_countries: { }
langcode_override: ''
field_overrides:
givenName:
override: hidden
additionalName:
override: hidden
organization:
override: hidden
sortingCode:
override: hidden
fields: { }
field_type: address

View File

@ -1,19 +0,0 @@
uuid: 253f8550-81f6-4faa-ad5b-386208fe56f8
langcode: fr
status: true
dependencies:
module:
- address
- group
id: group.field_adresse
field_name: field_adresse
entity_type: group
type: address
settings: { }
module: address
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@ -1,22 +0,0 @@
uuid: 2e0f2c83-243c-47d2-9117-4a2b1734c295
langcode: fr
status: true
dependencies:
module:
- node
- workflow
id: node.field_confidentialite
field_name: field_confidentialite
entity_type: node
type: workflow
settings:
workflow_type: confidentialite
allowed_values: { }
allowed_values_function: ''
module: workflow
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@ -1,4 +1,4 @@
uuid: 5acf7705-4d04-4287-ab75-c206e9e243ec
uuid: aab0fc38-c9cb-4314-bebc-37c15abbacb3
langcode: fr
status: true
dependencies:

View File

@ -1,18 +0,0 @@
uuid: c1282e42-a56d-4e45-84fc-b600d93904e1
langcode: fr
status: true
dependencies:
module:
- node
id: node.field_entite_agissante
field_name: field_entite_agissante
entity_type: node
type: boolean
settings: { }
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@ -1,20 +0,0 @@
uuid: 2aa80a26-ca7d-4067-80c1-fe14d7c5dc88
langcode: fr
status: true
dependencies:
module:
- node
- taxonomy
id: node.field_lieu
field_name: field_lieu
entity_type: node
type: entity_reference
settings:
target_type: taxonomy_term
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@ -1,19 +0,0 @@
uuid: af04b192-2da8-4d00-8728-d04db546eb07
langcode: fr
status: true
dependencies:
module:
- node
id: node.field_proximite
field_name: field_proximite
entity_type: node
type: entity_reference
settings:
target_type: node
module: core
locked: false
cardinality: -1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@ -1,19 +0,0 @@
uuid: ebbf362e-80ee-4f54-8a2f-c9a442e80305
langcode: fr
status: true
dependencies:
module:
- node
id: node.field_superposition
field_name: field_superposition
entity_type: node
type: entity_reference
settings:
target_type: node
module: core
locked: false
cardinality: -1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@ -1,16 +1,16 @@
uuid: 0905aa46-1120-4d3d-89e4-156d97c90e58
uuid: 477f32ee-3fe7-4b49-8667-630569af1da7
langcode: fr
status: true
dependencies:
module:
- paragraphs
- text
id: paragraph.field_description
field_name: field_description
entity_type: paragraph
type: text_long
settings: { }
module: text
type: string_long
settings:
case_sensitive: false
module: core
locked: false
cardinality: 1
translatable: true

View File

@ -1,19 +0,0 @@
uuid: d1f1c929-2a8d-4c0d-9b12-d4ac85b755e6
langcode: fr
status: true
dependencies:
module:
- address
- taxonomy
id: taxonomy_term.field_adresse
field_name: field_adresse
entity_type: taxonomy_term
type: address
settings: { }
module: address
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@ -1,49 +0,0 @@
uuid: ac2880cb-1e0f-42db-a209-2df6dedcdac0
langcode: fr
status: true
dependencies:
module:
- linkit
- url_to_video_filter
name: linkonly
format: linkonly
weight: 0
filters:
filter_htmlcorrector:
id: filter_htmlcorrector
provider: filter
status: true
weight: 10
settings: { }
filter_autop:
id: filter_autop
provider: filter
status: true
weight: 0
settings: { }
filter_html:
id: filter_html
provider: filter
status: false
weight: -10
settings:
allowed_html: '<em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id> <a href hreflang data-entity-substitution data-entity-type data-entity-uuid title>'
filter_html_help: true
filter_html_nofollow: false
linkit:
id: linkit
provider: linkit
status: true
weight: 0
settings:
title: true
filter_url_to_video:
id: filter_url_to_video
provider: url_to_video_filter
status: false
weight: 0
settings:
youtube: '1'
youtube_webp_preview: '0'
vimeo: '1'
autoload: '0'

View File

@ -1,11 +0,0 @@
uuid: 82d8efe1-e6d2-42f3-9cbf-b5f2f2dcaf41
langcode: fr
status: true
dependencies:
config:
- taxonomy.vocabulary.lieu
id: taxonomy_term.lieu
target_entity_type_id: taxonomy_term
target_bundle: lieu
default_langcode: site_default
language_alterable: false

View File

@ -10,7 +10,7 @@ third_party_settings:
parent: ''
_core:
default_config_hash: Gbpk2gnakDOKmsOEikWuVfLDOZ8rtrlW-UoZFjqWCF0
name: Statique
name: Static
type: static
description: 'Static Page'
help: ''

View File

@ -1,18 +0,0 @@
uuid: 6443c8bb-9c0d-4884-996a-04ef0200f020
langcode: fr
status: true
dependencies:
module:
- node
- serialization
- user
id: entity.node_type
plugin_id: 'entity:node_type'
granularity: resource
configuration:
methods:
- GET
formats:
- json
authentication:
- cookie

View File

@ -37,14 +37,14 @@ menus:
uuid: 52ec0062-b1c9-45be-a346-1b4907b7dea0
-
menu_name: administrator
title: Bourgeons
title: Groups
parent: null
uri: 'internal:/admin/group'
uri: 'http://dev.ouatterrir.fr/api/admin/group'
link_title: ''
description: null
enabled: true
expanded: false
weight: -49
weight: 1
langcode: fr
uuid: a9498617-648c-47d2-89d3-bc25c02d2a09
-
@ -56,56 +56,7 @@ menus:
description: null
enabled: true
expanded: false
weight: -46
weight: 2
langcode: fr
uuid: a6e17ef7-58a7-430b-9a82-c7af480a2870
-
menu_name: administrator
title: 'Registration codes'
parent: 'menu_link_content:a6e17ef7-58a7-430b-9a82-c7af480a2870'
uri: 'internal:/admin/config/people/regcode'
link_title: ''
description: null
enabled: true
expanded: false
weight: 0
langcode: fr
uuid: fe864d35-df11-41d3-a4a4-05fa58cfaefb
-
menu_name: administrator
title: Lieux
parent: null
uri: 'internal:/admin/structure/taxonomy/manage/lieu/overview'
link_title: ''
description: null
enabled: true
expanded: false
weight: -47
langcode: fr
uuid: 10cbd4a0-b907-4502-9c75-8f611cbcc5cb
-
menu_name: administrator
title: Structures
parent: null
uri: 'internal:/admin/structure/taxonomy/manage/structure/overview'
link_title: ''
description: null
enabled: true
expanded: false
weight: -48
langcode: fr
uuid: 49ef514c-0ba2-44bc-ada2-4621187a3fea
taxonomies:
lieu: { }
structure:
-
vid: structure
tid: '1'
langcode: fr
name: 'collectif rivage'
description__value: null
description__format: null
weight: '0'
parent: '0'
uuid: b12f7022-d9f0-44dc-907d-c1185e915d7e
log: 1

View File

@ -1,8 +0,0 @@
uuid: 7afbb3a0-0130-4130-b83a-6a340648a1e6
langcode: fr
status: true
dependencies: { }
name: Lieu
vid: lieu
description: ''
weight: 0

View File

@ -7,8 +7,6 @@ dependencies:
- node.type.concernement
- node.type.entite
- node.type.static
- taxonomy.vocabulary.lieu
- taxonomy.vocabulary.structure
module:
- actions_permissions
- administerusersbyrole
@ -20,9 +18,7 @@ dependencies:
- regcode
- role_delegation
- system
- taxonomy
- toolbar
- workflow
_core:
default_config_hash: oPv8PkAuHYeKKe1c48A3-O9VsF3Nl1XBsMKrgqxo8vs
id: admin
@ -30,128 +26,120 @@ label: Admin
weight: -7
is_admin: null
permissions:
0: 'access administration pages'
1: 'access any corpus_documents workflow_transion overview'
2: 'access any generique workflow_transion overview'
3: 'access files overview'
4: 'access kint'
5: 'access toolbar'
6: 'access user profiles'
7: 'access users overview'
8: 'administer productions menu items'
9: 'administer registration codes'
10: 'assign group_admin role'
11: 'assign group_member role'
12: 'cancel users with role group_admin'
13: 'cancel users with role group_member'
14: 'change own username'
15: 'create bourgeon group'
16: 'create concernement content'
17: 'create content translations'
18: 'create corpus_documents workflow_transition'
19: 'create defalut workflow_transition'
20: 'create default workflow_transition'
21: 'create enregistrement content'
22: 'create entite content'
23: 'create evenement content'
24: 'create generique workflow_transition'
25: 'create page content'
26: 'create static content'
27: 'create terms in collectionneurs'
28: 'create terms in entrees'
29: 'create terms in genres'
30: 'create terms in langues'
31: 'create terms in locuteurs'
32: 'create users'
33: 'delete any autre_son content'
34: 'delete any enregistrement content'
35: 'delete any evenement content'
36: 'delete any fil content'
37: 'delete any page content'
38: 'delete concernement revisions'
39: 'delete entite revisions'
40: 'delete own concernement content'
41: 'delete own entite content'
42: 'delete own static content'
43: 'delete static revisions'
44: 'delete terms in collectionneurs'
45: 'delete terms in entrees'
46: 'delete terms in genres'
47: 'delete terms in langues'
48: 'delete terms in locuteurs'
49: 'edit any autre_son content'
51: 'edit any enregistrement content'
52: 'edit any entite content'
53: 'edit any evenement content'
54: 'edit any page content'
55: 'edit any static content'
56: 'edit own enregistrement content'
57: 'edit terms in collectionneurs'
58: 'edit terms in entrees'
59: 'edit terms in genres'
60: 'edit terms in langues'
61: 'edit terms in locuteurs'
62: 'edit users by role'
63: 'edit users with role group_admin'
64: 'edit users with role group_member'
65: 'execute entity:save_action menu_link_content'
66: 'execute entity:save_action node'
67: 'execute entity:save_action taxonomy_term'
68: 'execute entity:save_action user'
69: 'execute node_assign_owner_action node'
70: 'execute node_promote_action node'
71: 'execute node_save_action node'
72: 'execute node_unpromote_action node'
73: 'execute user_add_role_action user'
74: 'execute user_block_user_action user'
75: 'execute user_remove_role_action user'
76: 'execute user_unblock_user_action user'
77: 'execute vbo_cancel_user_action user'
78: 'execute views_bulk_edit all'
79: 'execute workflow_node_given_state_action node'
80: 'execute workflow_node_next_state_action node'
81: 'revert any corpus_documents workflow_transition'
82: 'revert any generique workflow_transition'
83: 'revert autre_son revisions'
84: 'revert concernement revisions'
85: 'revert enregistrement revisions'
86: 'revert entite revisions'
87: 'revert evenement revisions'
88: 'revert page revisions'
89: 'revert static revisions'
90: 'role-assign users with role group_admin'
91: 'role-assign users with role group_member'
92: 'schedule corpus_documents workflow_transition'
93: 'schedule generique workflow_transition'
94: 'translate enregistrement node'
95: 'translate entrees taxonomy_term'
96: 'translate evenement node'
97: 'translate genres taxonomy_term'
98: 'translate langues taxonomy_term'
99: 'translate menu_link_content'
100: 'translate page node'
101: 'translate static node'
102: 'update content translations'
103: 'use text format wysiwyg'
104: 'view autre_son revisions'
105: 'view concernement revisions'
106: 'view enregistrement revisions'
107: 'view entite revisions'
108: 'view evenement revisions'
109: 'view own unpublished content'
110: 'view page revisions'
111: 'view static revisions'
112: 'view the administration theme'
113: 'view user email addresses'
114: 'view users by role'
115: 'view users with role group_admin'
116: 'view users with role group_member'
117: 'create terms in lieu'
118: 'create terms in structure'
119: 'delete terms in lieu'
120: 'delete terms in structure'
121: 'edit terms in lieu'
122: 'edit terms in structure'
123: 'access taxonomy overview'
124: 'create confidentialite workflow_transition'
125: 'edit own concernement content'
- 'access administration pages'
- 'access any corpus_documents workflow_transion overview'
- 'access any generique workflow_transion overview'
- 'access files overview'
- 'access kint'
- 'access toolbar'
- 'access user profiles'
- 'access users overview'
- 'administer productions menu items'
- 'administer registration codes'
- 'assign group_admin role'
- 'assign group_member role'
- 'cancel users with role group_admin'
- 'cancel users with role group_member'
- 'change own username'
- 'create bourgeon group'
- 'create concernement content'
- 'create content translations'
- 'create corpus_documents workflow_transition'
- 'create defalut workflow_transition'
- 'create default workflow_transition'
- 'create enregistrement content'
- 'create entite content'
- 'create evenement content'
- 'create generique workflow_transition'
- 'create page content'
- 'create static content'
- 'create terms in collectionneurs'
- 'create terms in entrees'
- 'create terms in genres'
- 'create terms in langues'
- 'create terms in locuteurs'
- 'create users'
- 'delete any autre_son content'
- 'delete any enregistrement content'
- 'delete any evenement content'
- 'delete any fil content'
- 'delete any page content'
- 'delete concernement revisions'
- 'delete entite revisions'
- 'delete own concernement content'
- 'delete own entite content'
- 'delete own static content'
- 'delete static revisions'
- 'delete terms in collectionneurs'
- 'delete terms in entrees'
- 'delete terms in genres'
- 'delete terms in langues'
- 'delete terms in locuteurs'
- 'edit any autre_son content'
- 'edit any concernement content'
- 'edit any enregistrement content'
- 'edit any entite content'
- 'edit any evenement content'
- 'edit any page content'
- 'edit any static content'
- 'edit own enregistrement content'
- 'edit terms in collectionneurs'
- 'edit terms in entrees'
- 'edit terms in genres'
- 'edit terms in langues'
- 'edit terms in locuteurs'
- 'edit users by role'
- 'edit users with role group_admin'
- 'edit users with role group_member'
- 'execute entity:save_action menu_link_content'
- 'execute entity:save_action node'
- 'execute entity:save_action taxonomy_term'
- 'execute entity:save_action user'
- 'execute node_assign_owner_action node'
- 'execute node_promote_action node'
- 'execute node_save_action node'
- 'execute node_unpromote_action node'
- 'execute user_add_role_action user'
- 'execute user_block_user_action user'
- 'execute user_remove_role_action user'
- 'execute user_unblock_user_action user'
- 'execute vbo_cancel_user_action user'
- 'execute views_bulk_edit all'
- 'execute workflow_node_given_state_action node'
- 'execute workflow_node_next_state_action node'
- 'revert any corpus_documents workflow_transition'
- 'revert any generique workflow_transition'
- 'revert autre_son revisions'
- 'revert concernement revisions'
- 'revert enregistrement revisions'
- 'revert entite revisions'
- 'revert evenement revisions'
- 'revert page revisions'
- 'revert static revisions'
- 'role-assign users with role group_admin'
- 'role-assign users with role group_member'
- 'schedule corpus_documents workflow_transition'
- 'schedule generique workflow_transition'
- 'translate enregistrement node'
- 'translate entrees taxonomy_term'
- 'translate evenement node'
- 'translate genres taxonomy_term'
- 'translate langues taxonomy_term'
- 'translate menu_link_content'
- 'translate page node'
- 'translate static node'
- 'update content translations'
- 'use text format wysiwyg'
- 'view autre_son revisions'
- 'view concernement revisions'
- 'view enregistrement revisions'
- 'view entite revisions'
- 'view evenement revisions'
- 'view own unpublished content'
- 'view page revisions'
- 'view static revisions'
- 'view the administration theme'
- 'view user email addresses'
- 'view users by role'
- 'view users with role group_admin'
- 'view users with role group_member'

View File

@ -10,7 +10,6 @@ dependencies:
- graphql
- group
- system
- workflow
_core:
default_config_hash: g0EHI5W4j_ZUCTvSQWEDEKVvC0g1Glt4YWZt_ihyvog
id: anonymous
@ -32,4 +31,3 @@ permissions:
- 'use text format wysiwyg'
- 'view published fil entities'
- 'view search api pages'
- 'create confidentialite workflow_transition'

View File

@ -3,7 +3,6 @@ langcode: fr
status: true
dependencies:
config:
- filter.format.linkonly
- filter.format.wysiwyg
module:
- devel
@ -11,7 +10,6 @@ dependencies:
- graphql
- group
- system
- workflow
_core:
default_config_hash: NlAJ1uthbRfNcM-M7UCYixmpTNgZnkuQKQymrXPv7UY
id: authenticated
@ -46,7 +44,3 @@ permissions:
- 'view published composition entities'
- 'view published fil entities'
- 'view search api pages'
- 'use text format linkonly'
- 'create confidentialite workflow_transition'
- 'access own confidentialite workflow_transion overview'
- 'revert own confidentialite workflow_transition'

View File

@ -5,16 +5,12 @@ dependencies:
config:
- node.type.concernement
- node.type.entite
- taxonomy.vocabulary.lieu
- taxonomy.vocabulary.structure
module:
- administerusersbyrole
- node
- role_delegation
- system
- taxonomy
- toolbar
- workflow
id: group_admin
label: 'group admin'
weight: -3
@ -40,11 +36,3 @@ permissions:
- 'view the administration theme'
- 'view users by role'
- 'view users with role group_member'
- 'create terms in lieu'
- 'create terms in structure'
- 'delete terms in lieu'
- 'delete terms in structure'
- 'edit terms in lieu'
- 'edit terms in structure'
- 'access taxonomy overview'
- 'create confidentialite workflow_transition'

View File

@ -9,7 +9,6 @@ dependencies:
- node
- system
- toolbar
- workflow
id: group_member
label: 'group member'
weight: -2
@ -27,4 +26,3 @@ permissions:
- 'view entite revisions'
- 'view own unpublished content'
- 'view the administration theme'
- 'create confidentialite workflow_transition'

View File

@ -32,7 +32,6 @@ dependencies:
- taxonomy
- toolbar
- views_ui
- workflow
_core:
default_config_hash: TBu83Sl_ckotQqV22pDBGe0jLnR1nLyiVeVVnYJX_kQ
id: root

View File

@ -1,9 +1,7 @@
uuid: fd49076e-124c-4973-9a8e-efbd35cd1fbe
langcode: fr
status: true
dependencies:
module:
- workflow
dependencies: { }
_core:
default_config_hash: i1HX2g6ycNxMoSaVKRrMZtmApin-bVKG1d0FG04peQw
id: user
@ -13,4 +11,3 @@ is_admin: null
permissions:
- 'create defalut workflow_transition'
- 'create default workflow_transition'
- 'create confidentialite workflow_transition'

View File

@ -3,7 +3,6 @@ langcode: fr
status: true
dependencies:
config:
- field.storage.node.field_confidentialite
- node.type.concernement
- node.type.entite
- node.type.static
@ -12,7 +11,6 @@ dependencies:
module:
- content_lock
- node
- options
- user
- views_bulk_operations
id: admin_nodes
@ -197,32 +195,22 @@ display:
row_class: ''
default_row_class: true
columns:
views_bulk_operations_bulk_form: views_bulk_operations_bulk_form
title: title
operations: title
is_locked: title
status: status
changed: changed
uid: uid
default: changed
views_bulk_operations_bulk_form: views_bulk_operations_bulk_form
operations: title
changed: changed
status: status
default: '-1'
info:
views_bulk_operations_bulk_form:
align: ''
separator: ''
empty_column: false
responsive: ''
title:
sortable: true
sortable: false
default_sort_order: asc
align: ''
separator: '<br>'
empty_column: false
responsive: ''
operations:
align: ''
separator: ''
empty_column: false
responsive: ''
is_locked:
sortable: false
default_sort_order: asc
@ -230,21 +218,31 @@ display:
separator: ''
empty_column: false
responsive: ''
status:
sortable: true
uid:
sortable: false
default_sort_order: asc
align: ''
separator: ''
empty_column: false
responsive: ''
changed:
sortable: true
default_sort_order: desc
views_bulk_operations_bulk_form:
align: ''
separator: ''
empty_column: false
responsive: ''
uid:
operations:
align: ''
separator: ''
empty_column: false
responsive: ''
changed:
sortable: false
default_sort_order: asc
align: ''
separator: ''
empty_column: false
responsive: ''
status:
sortable: false
default_sort_order: asc
align: ''
@ -369,15 +367,11 @@ display:
action_id: node_unpublish_by_keyword_action
preconfiguration:
add_confirmation: false
9:
action_id: workflow_node_given_state_action
preconfiguration:
add_confirmation: false
12:
10:
action_id: 'entity:save_action:node'
preconfiguration:
add_confirmation: false
13:
11:
action_id: 'entity:unpublish_action:node'
preconfiguration:
add_confirmation: true
@ -749,68 +743,6 @@ display:
multi_type: separator
separator: ', '
field_api_classes: false
field_confidentialite:
id: field_confidentialite
table: node__field_confidentialite
field: field_confidentialite
relationship: none
group_type: group
admin_label: ''
plugin_id: field
label: Confidentialité
exclude: false
alter:
alter_text: false
text: ''
make_link: false
path: ''
absolute: false
external: false
replace_spaces: false
path_case: none
trim_whitespace: false
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: false
max_length: 0
word_boundary: true
ellipsis: true
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: false
trim: false
preserve_tags: ''
html: false
element_type: ''
element_class: ''
element_label_type: ''
element_label_class: ''
element_label_colon: true
element_wrapper_type: ''
element_wrapper_class: ''
element_default_classes: true
empty: ''
hide_empty: false
empty_zero: false
hide_alter_empty: true
click_sort_column: value
type: list_default
settings: { }
group_column: value
group_columns: { }
group_rows: true
delta_limit: 0
delta_offset: 0
delta_reversed: false
delta_first_last: false
multi_type: separator
separator: ', '
field_api_classes: false
access:
type: role
options:
@ -904,53 +836,6 @@ display:
default_group: All
default_group_multiple: { }
group_items: { }
uid:
id: uid
table: node_field_data
field: uid
relationship: none
group_type: group
admin_label: ''
entity_type: node
entity_field: uid
plugin_id: user_name
operator: in
value: { }
group: 1
exposed: true
expose:
operator_id: uid_op
label: 'Écrit par'
description: ''
use_operator: false
operator: uid_op
operator_limit_selection: false
operator_list: { }
identifier: uid
required: false
remember: false
multiple: false
remember_roles:
authenticated: authenticated
anonymous: '0'
admin: '0'
root: '0'
user: '0'
group_admin: '0'
group_member: '0'
reduce: false
is_grouped: false
group_info:
label: ''
description: ''
identifier: ''
optional: true
widget: select
multiple: false
remember: false
default_group: All
default_group_multiple: { }
group_items: { }
filter_groups:
operator: AND
groups:
@ -987,8 +872,7 @@ display:
- url.query_args
- 'user.node_grants:view'
- user.roles
tags:
- 'config:field.storage.node.field_confidentialite'
tags: { }
page_2:
id: page_2
display_title: Entités
@ -1059,18 +943,14 @@ display:
preconfiguration:
add_confirmation: false
9:
action_id: workflow_node_given_state_action
preconfiguration:
add_confirmation: false
11:
action_id: 'entity:publish_action:node'
preconfiguration:
add_confirmation: false
12:
10:
action_id: 'entity:save_action:node'
preconfiguration:
add_confirmation: false
13:
11:
action_id: 'entity:unpublish_action:node'
preconfiguration:
add_confirmation: false
@ -1442,68 +1322,6 @@ display:
multi_type: separator
separator: ', '
field_api_classes: false
field_confidentialite:
id: field_confidentialite
table: node__field_confidentialite
field: field_confidentialite
relationship: none
group_type: group
admin_label: ''
plugin_id: field
label: Confidentialité
exclude: false
alter:
alter_text: false
text: ''
make_link: false
path: ''
absolute: false
external: false
replace_spaces: false
path_case: none
trim_whitespace: false
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: false
max_length: 0
word_boundary: true
ellipsis: true
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: false
trim: false
preserve_tags: ''
html: false
element_type: ''
element_class: ''
element_label_type: ''
element_label_class: ''
element_label_colon: true
element_wrapper_type: ''
element_wrapper_class: ''
element_default_classes: true
empty: ''
hide_empty: false
empty_zero: false
hide_alter_empty: true
click_sort_column: value
type: list_default
settings: { }
group_column: value
group_columns: { }
group_rows: true
delta_limit: 0
delta_offset: 0
delta_reversed: false
delta_first_last: false
multi_type: separator
separator: ', '
field_api_classes: false
access:
type: role
options:
@ -1608,20 +1426,25 @@ display:
default_row_class: true
columns:
views_bulk_operations_bulk_form: views_bulk_operations_bulk_form
field_images: field_images
title: title
operations: title
is_locked: title
status: status
changed: changed
uid: uid
field_confidentialite: field_confidentialite
default: changed
default: '-1'
info:
views_bulk_operations_bulk_form:
align: ''
separator: ''
empty_column: false
responsive: ''
field_images:
align: ''
separator: ''
empty_column: false
responsive: ''
title:
sortable: false
default_sort_order: asc
@ -1642,27 +1465,20 @@ display:
empty_column: false
responsive: ''
status:
sortable: true
default_sort_order: asc
align: ''
separator: ''
empty_column: false
responsive: ''
changed:
sortable: true
default_sort_order: desc
align: ''
separator: ''
empty_column: false
responsive: ''
uid:
sortable: false
default_sort_order: asc
align: ''
separator: ''
empty_column: false
responsive: ''
field_confidentialite:
changed:
sortable: false
default_sort_order: asc
align: ''
separator: ''
empty_column: false
responsive: ''
uid:
sortable: false
default_sort_order: asc
align: ''
@ -1717,8 +1533,7 @@ display:
- url.query_args
- 'user.node_grants:view'
- user.roles
tags:
- 'config:field.storage.node.field_confidentialite'
tags: { }
page_3:
id: page_3
display_title: 'Admin Statics'

View File

@ -1,4 +0,0 @@
_core:
default_config_hash: ne-hLr6xAfj-y7himkP4sQpLeAsTLAzt9YuxlQCk8N8
langcode: fr
workflow_states_per_page: 20

View File

@ -1,12 +0,0 @@
uuid: 0351b46e-4e73-41c2-96e1-721e94de7f9d
langcode: fr
status: true
dependencies:
config:
- workflow.workflow.confidentialite
id: confidentialite_creation
label: Création
module: workflow
wid: confidentialite
weight: -11
sysid: 1

View File

@ -1,12 +0,0 @@
uuid: 183705af-2ec6-4139-bae1-66259dd6fa7b
langcode: fr
status: true
dependencies:
config:
- workflow.workflow.confidentialite
id: confidentialite_interne
label: Interne
module: workflow
wid: confidentialite
weight: -8
sysid: 0

View File

@ -1,12 +0,0 @@
uuid: ba338719-1bd7-4037-b595-5ce9eb9d62f1
langcode: fr
status: true
dependencies:
config:
- workflow.workflow.confidentialite
id: confidentialite_prive
label: Privé
module: workflow
wid: confidentialite
weight: -9
sysid: 0

View File

@ -1,12 +0,0 @@
uuid: c647b5ee-7a46-4de6-958a-002e0c32e382
langcode: fr
status: true
dependencies:
config:
- workflow.workflow.confidentialite
id: confidentialite_public
label: Public
module: workflow
wid: confidentialite
weight: -7
sysid: 0

View File

@ -1,21 +0,0 @@
uuid: ab020652-689c-444c-80e4-c2707e53ac6e
langcode: fr
status: true
dependencies:
config:
- workflow.state.confidentialite_creation
- workflow.state.confidentialite_interne
id: confidentialite_creation_interne
label: null
module: workflow
from_sid: confidentialite_creation
to_sid: confidentialite_interne
roles:
workflow_author: workflow_author
anonymous: '0'
authenticated: '0'
admin: '0'
root: '0'
user: '0'
group_admin: '0'
group_member: '0'

View File

@ -1,21 +0,0 @@
uuid: 85b1be83-d2bd-4a90-b27d-803269f91d36
langcode: fr
status: true
dependencies:
config:
- workflow.state.confidentialite_creation
- workflow.state.confidentialite_prive
id: confidentialite_creation_prive
label: null
module: workflow
from_sid: confidentialite_creation
to_sid: confidentialite_prive
roles:
workflow_author: workflow_author
anonymous: '0'
authenticated: '0'
admin: '0'
root: '0'
user: '0'
group_admin: '0'
group_member: '0'

View File

@ -1,21 +0,0 @@
uuid: 2e2d73c6-d25d-4eb6-8c7e-e1f7aa64b92b
langcode: fr
status: true
dependencies:
config:
- workflow.state.confidentialite_creation
- workflow.state.confidentialite_public
id: confidentialite_creation_public
label: null
module: workflow
from_sid: confidentialite_creation
to_sid: confidentialite_public
roles:
workflow_author: workflow_author
anonymous: '0'
authenticated: '0'
admin: '0'
root: '0'
user: '0'
group_admin: '0'
group_member: '0'

View File

@ -1,12 +0,0 @@
uuid: 660a5e55-b825-4929-8f4e-c4cd8cdf7909
langcode: fr
status: true
dependencies:
config:
- workflow.state.confidentialite_interne
id: confidentialite_interne_interne
label: null
module: workflow
from_sid: confidentialite_interne
to_sid: confidentialite_interne
roles: { }

View File

@ -1,21 +0,0 @@
uuid: f5b55ad2-a374-427f-a4c1-a379a7ec0b24
langcode: fr
status: true
dependencies:
config:
- workflow.state.confidentialite_interne
- workflow.state.confidentialite_prive
id: confidentialite_interne_prive
label: null
module: workflow
from_sid: confidentialite_interne
to_sid: confidentialite_prive
roles:
workflow_author: workflow_author
anonymous: '0'
authenticated: '0'
admin: '0'
root: '0'
user: '0'
group_admin: '0'
group_member: '0'

View File

@ -1,21 +0,0 @@
uuid: c8bf1fae-a2c9-48ee-8474-78501db435b5
langcode: fr
status: true
dependencies:
config:
- workflow.state.confidentialite_interne
- workflow.state.confidentialite_public
id: confidentialite_interne_public
label: null
module: workflow
from_sid: confidentialite_interne
to_sid: confidentialite_public
roles:
workflow_author: workflow_author
anonymous: '0'
authenticated: '0'
admin: '0'
root: '0'
user: '0'
group_admin: '0'
group_member: '0'

View File

@ -1,21 +0,0 @@
uuid: 0972a24b-390b-4d93-8d8d-4f818d05de26
langcode: fr
status: true
dependencies:
config:
- workflow.state.confidentialite_interne
- workflow.state.confidentialite_prive
id: confidentialite_prive_interne
label: null
module: workflow
from_sid: confidentialite_prive
to_sid: confidentialite_interne
roles:
workflow_author: workflow_author
anonymous: '0'
authenticated: '0'
admin: '0'
root: '0'
user: '0'
group_admin: '0'
group_member: '0'

View File

@ -1,12 +0,0 @@
uuid: a2b1e04e-972f-44ee-84e8-07855498a354
langcode: fr
status: true
dependencies:
config:
- workflow.state.confidentialite_prive
id: confidentialite_prive_prive
label: null
module: workflow
from_sid: confidentialite_prive
to_sid: confidentialite_prive
roles: { }

View File

@ -1,21 +0,0 @@
uuid: d2d5c293-2ead-4fc8-95be-ef68d3a3a0c5
langcode: fr
status: true
dependencies:
config:
- workflow.state.confidentialite_prive
- workflow.state.confidentialite_public
id: confidentialite_prive_public
label: null
module: workflow
from_sid: confidentialite_prive
to_sid: confidentialite_public
roles:
workflow_author: workflow_author
anonymous: '0'
authenticated: '0'
admin: '0'
root: '0'
user: '0'
group_admin: '0'
group_member: '0'

View File

@ -1,21 +0,0 @@
uuid: 01fe5f06-6534-475b-ba5d-e35ed4d57074
langcode: fr
status: true
dependencies:
config:
- workflow.state.confidentialite_interne
- workflow.state.confidentialite_public
id: confidentialite_public_interne
label: null
module: workflow
from_sid: confidentialite_public
to_sid: confidentialite_interne
roles:
workflow_author: workflow_author
anonymous: '0'
authenticated: '0'
admin: '0'
root: '0'
user: '0'
group_admin: '0'
group_member: '0'

View File

@ -1,21 +0,0 @@
uuid: 01009bf6-5dca-4e7f-9e38-84d47dae0665
langcode: fr
status: true
dependencies:
config:
- workflow.state.confidentialite_prive
- workflow.state.confidentialite_public
id: confidentialite_public_prive
label: null
module: workflow
from_sid: confidentialite_public
to_sid: confidentialite_prive
roles:
workflow_author: workflow_author
anonymous: '0'
authenticated: '0'
admin: '0'
root: '0'
user: '0'
group_admin: '0'
group_member: '0'

View File

@ -1,12 +0,0 @@
uuid: b7ab92f0-4333-4077-af68-16e9e6c0fe27
langcode: fr
status: true
dependencies:
config:
- workflow.state.confidentialite_public
id: confidentialite_public_public
label: null
module: workflow
from_sid: confidentialite_public
to_sid: confidentialite_public
roles: { }

View File

@ -1,16 +0,0 @@
uuid: 03cc8dff-7247-434e-b13f-fd07e5e352ff
langcode: fr
status: true
dependencies: { }
id: confidentialite
label: Confidentialité
module: workflow
options:
name_as_title: 1
fieldset: 0
options: radios
schedule_enable: false
schedule_timezone: 0
always_update_entity: 0
comment_log_node: 0
watchdog_log: 1

View File

@ -1,99 +0,0 @@
confidentialite_prive:
workflow_author:
grant_view: true
grant_update: true
grant_delete: true
anonymous:
grant_view: 0
grant_update: 0
grant_delete: 0
authenticated:
grant_view: 0
grant_update: 0
grant_delete: 0
admin:
grant_view: 0
grant_update: 0
grant_delete: 0
root:
grant_view: 0
grant_update: 0
grant_delete: 0
user:
grant_view: 0
grant_update: 0
grant_delete: 0
group_admin:
grant_view: 0
grant_update: 0
grant_delete: 0
group_member:
grant_view: 0
grant_update: 0
grant_delete: 0
confidentialite_interne:
workflow_author:
grant_view: 0
grant_update: true
grant_delete: true
anonymous:
grant_view: 0
grant_update: 0
grant_delete: 0
authenticated:
grant_view: true
grant_update: 0
grant_delete: 0
admin:
grant_view: 0
grant_update: 0
grant_delete: 0
root:
grant_view: 0
grant_update: 0
grant_delete: 0
user:
grant_view: 0
grant_update: 0
grant_delete: 0
group_admin:
grant_view: 0
grant_update: 0
grant_delete: 0
group_member:
grant_view: 0
grant_update: 0
grant_delete: 0
confidentialite_public:
workflow_author:
grant_view: 0
grant_update: true
grant_delete: true
anonymous:
grant_view: true
grant_update: 0
grant_delete: 0
authenticated:
grant_view: true
grant_update: 0
grant_delete: 0
admin:
grant_view: 0
grant_update: 0
grant_delete: 0
root:
grant_view: 0
grant_update: 0
grant_delete: 0
user:
grant_view: 0
grant_update: 0
grant_delete: 0
group_admin:
grant_view: 0
grant_update: 0
grant_delete: 0
group_member:
grant_view: 0
grant_update: 0
grant_delete: 0

View File

@ -1,4 +0,0 @@
_core:
default_config_hash: 3ETcNoKFd7BS1XpRDb7DnLCLSImcSqLv0rEQ0VJhE-E
langcode: fr
workflow_access_priority: 0

View File

@ -12,8 +12,7 @@ type Concernement implements NodeInterface {
title: String!
path: String!
author: String
description: String
caillou: String
texte: String
recit: Filefield
entites: [Entiteintegre]
}
@ -32,22 +31,10 @@ type Entite implements NodeInterface {
title: String!
path: String!
author: String
action: String
menacemaintien: String
superposition: [Entite]
proximite: [Entite]
agissante: Boolean
sources: [Source]
}
type Source {
audios: Filefield
date: Date
documents: [Filefield]
description: String
texte: String
images: [Image]
fichiers: [Filefield]
liens: [Link]
videos: [VideoLink]
}
type Static implements NodeInterface {
@ -147,14 +134,3 @@ type Date {
start: String
end: String
}
type EntityDefinition {
fields: [FieldDef]
}
type FieldDef {
field_name: String
type: String
label: String
description: String
}

View File

@ -54,7 +54,3 @@ extend type Query {
extend type Query {
group(id: Int!): Group
}
extend type Query {
entitydef(type: String, bundle: String): EntityDefinition
}

View File

@ -8,7 +8,6 @@ use Drupal\graphql\GraphQL\Response\ResponseInterface;
use Drupal\graphql\Plugin\GraphQL\SchemaExtension\SdlSchemaExtensionPluginBase;
use Drupal\materio_graphql\GraphQL\Response\MaterioResponse;
use Drupal\Core\Url;
use Drupal\Node\Entity\NodeType;
use GraphQL\Error\Error;
@ -36,8 +35,6 @@ class OuattSchemaExtension extends SdlSchemaExtensionPluginBase {
//
$this->addEntites($registry, $builder);
//
$this->addSource($registry, $builder);
//
$this->addStatic($registry, $builder);
//
$this->addGroup($registry, $builder);
@ -58,9 +55,6 @@ class OuattSchemaExtension extends SdlSchemaExtensionPluginBase {
//
$this->addLink($registry, $builder);
$this->addEntityDefinition($registry, $builder);
$this->addFieldDef($registry, $builder);
}
// ___ _
@ -168,18 +162,11 @@ class OuattSchemaExtension extends SdlSchemaExtensionPluginBase {
->map('entity', $builder->fromParent())
));
$registry->addFieldResolver('Concernement', 'description',
$registry->addFieldResolver('Concernement', 'texte',
$builder->produce('property_path')
->map('type', $builder->fromValue('entity:node'))
->map('value', $builder->fromParent())
->map('path', $builder->fromValue('field_description.value'))
);
$registry->addFieldResolver('Concernement', 'caillou',
$builder->produce('property_path')
->map('type', $builder->fromValue('entity:node'))
->map('value', $builder->fromParent())
->map('path', $builder->fromValue('field_caillou.value'))
->map('path', $builder->fromValue('body.value'))
);
$registry->addFieldResolver('Concernement', 'author',
@ -261,6 +248,7 @@ class OuattSchemaExtension extends SdlSchemaExtensionPluginBase {
// | _| | '_ \| __| | __/ _ \/ __|
// | |___| | | | |_| | || __/\__ \
// |_____|_| |_|\__|_|\__\___||___/
protected function addEntites(ResolverRegistryInterface $registry, ResolverBuilder $builder){
$registry->addFieldResolver('Query', 'allentites',
$builder->compose(
@ -331,41 +319,11 @@ class OuattSchemaExtension extends SdlSchemaExtensionPluginBase {
->map('entity', $builder->fromParent())
));
// superposition: [Entite]
$registry->addFieldResolver('Entite', 'superposition',
$builder->produce('entity_reference')
->map('entity', $builder->fromParent())
->map('field', $builder->fromValue('field_superposition'))
);
// proximite: [Entite]
$registry->addFieldResolver('Entite', 'proximite',
$builder->produce('entity_reference')
->map('entity', $builder->fromParent())
->map('field', $builder->fromValue('field_proximite'))
);
// agissante: Boolean
$registry->addFieldResolver('Entite', 'agissante',
$registry->addFieldResolver('Entite', 'texte',
$builder->produce('property_path')
->map('type', $builder->fromValue('entity:node'))
->map('value', $builder->fromParent())
->map('path', $builder->fromValue('field_entite_agissante.value'))
);
$registry->addFieldResolver('Entite', 'action',
$builder->produce('property_path')
->map('type', $builder->fromValue('entity:node'))
->map('value', $builder->fromParent())
->map('path', $builder->fromValue('field_action.value'))
);
$registry->addFieldResolver('Entite', 'menacemaintien',
$builder->produce('property_path')
->map('type', $builder->fromValue('entity:node'))
->map('value', $builder->fromParent())
->map('path', $builder->fromValue('field_menace_maintien.value'))
->map('path', $builder->fromValue('body.value'))
);
$registry->addFieldResolver('Entite', 'author',
@ -376,73 +334,34 @@ class OuattSchemaExtension extends SdlSchemaExtensionPluginBase {
->map('entity', $builder->fromParent())
));
$registry->addFieldResolver('Entite', 'sources',
$builder->produce('entity_reference_revisions')
->map('entity', $builder->fromParent())
->map('field', $builder->fromValue('field_sources'))
);
}
// ____
// / ___| ___ _ _ _ __ ___ ___
// \___ \ / _ \| | | | '__/ __/ _ \
// ___) | (_) | |_| | | | (_| __/
// |____/ \___/ \__,_|_| \___\___|
protected function addSource(ResolverRegistryInterface $registry, ResolverBuilder $builder) {
$registry->addFieldResolver('Source', 'description',
$builder->produce('property_path')
->map('type', $builder->fromValue('entity:paragraph'))
->map('value', $builder->fromParent())
->map('path', $builder->fromValue('field_description.value'))
);
$registry->addFieldResolver('Source', 'images',
$registry->addFieldResolver('Entite', 'images',
$builder->produce('entity_reference')
->map('entity', $builder->fromParent())
->map('field', $builder->fromValue('field_images'))
);
$registry->addFieldResolver('Source', 'videos',
$registry->addFieldResolver('Entite', 'videos',
$builder->produce('property_path')
->map('type', $builder->fromValue('entity:paragraph'))
->map('type', $builder->fromValue('entity:node'))
->map('value', $builder->fromParent())
->map('path', $builder->fromValue('field_videos'))
);
$registry->addFieldResolver('Source', 'documents',
$builder->produce('property_path')
->map('type', $builder->fromValue('entity:paragraph'))
->map('value', $builder->fromParent())
->map('path', $builder->fromValue('field_documents'))
$registry->addFieldResolver('Entite', 'fichiers',
$builder->produce('entity_reference')
->map('entity', $builder->fromParent())
->map('field', $builder->fromValue('field_fichiers'))
);
$registry->addFieldResolver('Source', 'liens',
$registry->addFieldResolver('Entite', 'liens',
$builder->produce('property_path')
->map('type', $builder->fromValue('entity:paragraph'))
->map('type', $builder->fromValue('entity:node'))
->map('value', $builder->fromParent())
->map('path', $builder->fromValue('field_liens'))
);
$registry->addFieldResolver('Source', 'date',
$builder->produce('property_path')
->map('type', $builder->fromValue('entity:paragraph'))
->map('value', $builder->fromParent())
->map('path', $builder->fromValue('field_date'))
);
$registry->addFieldResolver('Source', 'audios',
$builder->produce('property_path')
->map('type', $builder->fromValue('entity:paragraph'))
->map('value', $builder->fromParent())
->map('path', $builder->fromValue('field_audio'))
);
}
// ___ _ _ _
// / __| |_ __ _| |_(_)__ ___
// \__ \ _/ _` | _| / _(_-<
@ -754,25 +673,13 @@ class OuattSchemaExtension extends SdlSchemaExtensionPluginBase {
$registry->addFieldResolver('Filefield', 'description',
$builder->callback(function ($parent, $args) {
if (is_array($parent) && isset($parent['description'])) {
return $parent['description'];
} else if (is_array($parent) && isset($parent[0]['description'])) {
return $parent[0]['description'];
} else{
return null;
}
return $parent['description'];
})
);
$registry->addFieldResolver('Filefield', 'file',
$builder->callback(function ($parent, $args) {
if (is_array($parent) && isset($parent['target_id'])) {
return \Drupal\file\Entity\File::load($parent['target_id']);
} else if (is_array($parent) && isset($parent[0]['target_id'])) {
return \Drupal\file\Entity\File::load($parent[0]['target_id']);
} else{
return null;
}
return \Drupal\file\Entity\File::load($parent['target_id']);
})
);
@ -966,102 +873,13 @@ class OuattSchemaExtension extends SdlSchemaExtensionPluginBase {
protected function addLink(ResolverRegistryInterface $registry, ResolverBuilder $builder) {
$registry->addFieldResolver('Link', 'url',
$builder->callback(function ($parent, $args) {
// return isset($parent[0]) ? $parent[0]['uri'] : null;
return $parent['uri'];
return isset($parent[0]) ? $parent[0]['uri'] : null;
})
);
$registry->addFieldResolver('Link', 'title',
$builder->callback(function ($parent, $args) {
// return isset($parent[0]) ? $parent[0]['title'] : null;
return $parent['title'];
return isset($parent[0]) ? $parent[0]['title'] : null;
})
);
}
// _____ _ _ _ ____ __ _ _ _ _
// | ____|_ __ | |_(_) |_ _ _ | _ \ ___ / _(_)_ __ (_) |_(_) ___ _ __
// | _| | '_ \| __| | __| | | | | | | |/ _ \ |_| | '_ \| | __| |/ _ \| '_ \
// | |___| | | | |_| | |_| |_| | | |_| | __/ _| | | | | | |_| | (_) | | | |
// |_____|_| |_|\__|_|\__|\__, | |____/ \___|_| |_|_| |_|_|\__|_|\___/|_| |_|
// |___/
protected function addEntityDefinition(ResolverRegistryInterface $registry, ResolverBuilder $builder) {
$registry->addFieldResolver('Query', 'entitydef',
$builder->compose(
$builder->callback(function($parent, $arg){
// $entity_object = NodeType::load($builder->fromArgument('bundle'));
$field_defintions = \Drupal::service('entity_field.manager')->getFieldDefinitions($arg['type'], $arg['bundle']);
return $field_defintions;
})
)
);
$registry->addFieldResolver('EntityDefinition', 'fields',
$builder->callback(function ($parent, $args) {
return $parent;
})
);
}
// _____ _ _ _ ____ __
// | ___(_) ___| | __| | | _ \ ___ / _|
// | |_ | |/ _ \ |/ _` | | | | |/ _ \ |_
// | _| | | __/ | (_| | | |_| | __/ _|
// |_| |_|\___|_|\__,_| |____/ \___|_|
protected function addFieldDef(ResolverRegistryInterface $registry, ResolverBuilder $builder) {
$registry->addFieldResolver('FieldDef', 'type',
$builder->callback(function ($parent, $args) {
return $parent->getType();
})
);
$registry->addFieldResolver('FieldDef', 'field_name',
$builder->callback(function ($parent, $args) {
return $parent->getName();
})
);
$registry->addFieldResolver('FieldDef', 'label',
$builder->callback(function ($parent, $args) {
$label = $parent->getLabel();
$vartype = gettype($label);
switch ($vartype) {
case 'string':
return $label;
break;
case 'object':
switch (get_class($label)) {
case 'TranslatableMarkup':
return $label->render();
break;
}
break;
}
return "";
})
);
$registry->addFieldResolver('FieldDef', 'description',
$builder->callback(function ($parent, $args) {
$description = $parent->getDescription();
$vartype = gettype($description);
switch ($vartype) {
case 'string':
return $description;
break;
case 'object':
switch (get_class($description)) {
case 'TranslatableMarkup':
return $description->render();
break;
}
break;
}
return "";
})
);
}
}

View File

@ -239,11 +239,6 @@
padding:0.5em;
border: 1px solid #bbb;
border-radius: 5px;
transition: all 2s ease-in-out;
}
#boussole-layout .form-item[data-drupal-selector="edit-field-entite"] table.field-multiple-table>tbody>tr>td:not(.field-multiple-drag)>div.entite-over{
border-color: #f00;
transition: all 0.2s ease-in-out;
}
#boussole-layout .form-item[data-drupal-selector="edit-field-entite"] table.field-multiple-table>tbody>tr>td:not(.field-multiple-drag) > div .horizontal-tabs-panes>details>.seven-details__wrapper{
@ -360,7 +355,6 @@ div.field--name-field-menace-maintien label{
/* width:100%; */
max-height: calc(100vh - 150px);
position: relative;
padding: 8%;
}
#boussole-layout .boussole-wrapper .boussole .entity{
position: absolute;
@ -370,17 +364,10 @@ div.field--name-field-menace-maintien label{
transform: translate(-5px, -5px);
cursor:move;
}
#boussole-layout .boussole-wrapper .boussole .entity.entite-over{
background-color: #f00;
}
#boussole-layout .boussole-wrapper .boussole .entity.ajax-new{
background-color: #fff;
border: 1px solid black;
}
#boussole-layout .boussole-wrapper .boussole .entity.ajax-new.entite-over{
border: 1px solid red;
}
#boussole-layout .boussole-wrapper .boussole .entity.hide{
display: none;
}

View File

@ -1,12 +1,11 @@
(function ($, Drupal, once) {
var _boussole;
// behaviour is attached by preporcess ouatminimal_preprocess_field_multiple_value_form__field_entite__node_concernement() on ouatminimal.theme file
Drupal.behaviors.boussole = {
attach: function (context, settings) {
console.log("Drupal Boussole behavior", context);
let $boussole_wrapper = document.querySelector('#boussole-layout');
once('boussole-class-behaviour', '#boussole-layout', context).forEach(element => {
// let tabs =
let tabs =
// div.field-group-tabs-wrapper
// input.horizontal-tabs-active-tab
_boussole = new Boussole($boussole_wrapper);
@ -33,7 +32,6 @@
let $p = $entity.querySelector('.paragraphs-subform .field--name-field-prise input');
let $mm = $entity.querySelector('.paragraphs-subform .field--name-field-menace-maintien-degres input');
let e = {
form: $form,
wrapper:{
$dom: $entity,
id: id
@ -187,8 +185,7 @@
this.$container.append(this.$e);
console.log(this.$e);
this.updatePos();
this.initOverEvents();
this.initDraggable();
this.initDraggable()
}
updateDomElemt(){
@ -202,32 +199,6 @@
}
}
initOverEvents(){
// on mouseover point on boussole
this.$e.addEventListener('mouseenter', (event) => {
console.log('enter boussole entité', this.values);
this.values.wrapper.$dom.classList.add('entite-over');
// scroll to form item
var $tr = this.values.wrapper.$dom.closest("tr.draggable");
var top = $tr.offsetTop;
// console.log('offsetTop', top, $tr);
this.values.form.scrollTo({top: top, left: 0, behaviour: "smooth"});
});
this.$e.addEventListener('mouseleave', (event) => {
// console.log('leave boussole entité', this.values);
this.values.wrapper.$dom.classList.remove('entite-over');
});
// on mouseover formitem on drupal form
this.values.wrapper.$dom.addEventListener('mouseenter', (event) => {
this.$e.classList.add('entite-over');
})
this.values.wrapper.$dom.addEventListener('mouseleave', (event) => {
this.$e.classList.remove('entite-over');
})
}
initDraggable(){
this.$e.setAttribute('draggable', true);
this.$e.addEventListener('dragstart', event => {
@ -276,8 +247,8 @@
this.values.mm.value = this.values.mm.$dom.value = a;
// https://stackoverflow.com/questions/5731863/mapping-a-numeric-range-onto-another
// from range 0 -> rayon_de_la_boussole moins 8% de padding |to| range 0 -> 100
let r_max = this.sceneSize.w/2 * 0.92;
// from range 0 -> rayon_de_la_boussole to range 0 -> 100
let r_max = this.sceneSize.w/2;
let r_slope = (100 - 0) / (r_max - 0);
this.values.p.value = this.values.p.$dom.value = 100 - parseFloat(0 + r_slope * (r - 0)).toFixed(2);
// this.values.p.$dom.value = this.values.p.value;
@ -319,8 +290,8 @@
// from range 0 -> 100 to range 0 -> diagonale de la scene
// let diagonale = Math.sqrt(Math.pow(this.sceneSize.w, 2) + Math.pow(this.sceneSize.h, 2))/2;
// let r_max = diagonale;
// actualy we don't use diagonale, we stay on the circle less 8% padding to get 100 on the external circle
let r_max = this.sceneSize.w/2 * 0.92;
// actualy we don't use diagonale, we stay on the circle
let r_max = this.sceneSize.w/2;
let r_slope = (r_max - 0) / (100 - 0)
// we inverse p as the more p you have the closest you are from the center
let r = parseInt(0 + r_slope * ((100 - this.values.p.value) - 0));
@ -344,4 +315,17 @@
})(jQuery, Drupal, once);

View File

@ -149,18 +149,6 @@ function ouatminimal_preprocess_input(&$variables) {
if (preg_match('/^ief-field_entite-\d+-subform-field_entite-form-add$/', $name)) {
$element['#value'] = $element['#attributes']['value'] = $variables['attributes']['value'] = "Editer l'entité";
}
// // rename entité reference in paragraphe "Ajouter un node existant" to "ajouyer entite existante"
// // "ief-field_entite-0-subform-field_entite-form-add"
// if (preg_match('/^ief-field_entite-\d+-subform-field_entite-form-add-existing$/', $name)) {
// $element['#value'] = $element['#attributes']['value'] = $variables['attributes']['value'] = "Ajouter une entité éxistante";
// }
// // rename entité reference in paragraphe "Ajout de node" to "Ajouter"
// // "ief-reference-submit-field_entite-7-subform-field_entite-form"
// if (preg_match('/^ief-reference-submit-field_entite-\d+-subform-field_entite-form$/', $name)) {
// $element['#value'] = $element['#attributes']['value'] = $variables['attributes']['value'] = "Ajouter";
// }
// rename remove (paragraphe) to "supprimer"
if (preg_match('/field_entite_\d+_remove/', $name)) {
$element['#value'] = $element['#attributes']['value'] = $variables['attributes']['value'] = "Supprimer";