removed all CT breve ref in config files

This commit is contained in:
Bachir Soussi Chiadmi 2019-02-13 20:34:49 +01:00
parent 639ec659cd
commit 69d7548d98
20 changed files with 49 additions and 29 deletions

View File

@ -127,7 +127,6 @@ third_party_settings:
children:
- field_linked_materials
- field_linked_articles
- field_linked_breves
parent_name: group_htabs
weight: 13
format_type: tab

View File

@ -194,8 +194,8 @@ content:
region: content
links:
weight: 100
region: content
settings: { }
third_party_settings: { }
region: content
hidden:
langcode: true

View File

@ -5,6 +5,24 @@ dependencies:
config:
- core.entity_view_mode.node.teaser
- field.field.node.materiau.body
- field.field.node.materiau.field_attachments
- field.field.node.materiau.field_distributor
- field.field.node.materiau.field_famille
- field.field.node.materiau.field_index
- field.field.node.materiau.field_linked_articles
- field.field.node.materiau.field_linked_materials
- field.field.node.materiau.field_localisation_old
- field.field.node.materiau.field_manufacturer
- field.field.node.materiau.field_materiau_images
- field.field.node.materiau.field_memo
- field.field.node.materiau.field_migration
- field.field.node.materiau.field_reference
- field.field.node.materiau.field_samples
- field.field.node.materiau.field_short_description
- field.field.node.materiau.field_tags
- field.field.node.materiau.field_thesaurus
- field.field.node.materiau.field_video
- field.field.node.materiau.field_workflow
- node.type.materiau
module:
- text
@ -24,15 +42,15 @@ content:
region: content
links:
weight: 100
region: content
settings: { }
third_party_settings: { }
region: content
hidden:
field_attachments: true
field_distributor: true
field_famille: true
field_index: true
field_linked_breves: true
field_linked_articles: true
field_linked_materials: true
field_localisation_old: true
field_manufacturer: true

View File

@ -1,4 +1,4 @@
uuid: 8c9210cb-a99c-4ea9-b1ae-7cebab867e35
uuid: e549aecb-1717-48fd-84bf-9583f4e6f6eb
langcode: en
status: true
dependencies: { }

View File

@ -1,4 +1,4 @@
uuid: ca320942-862b-4cf6-96db-1b2054b7cbb0
uuid: ecec57d1-7cb8-4634-8508-05caa0e364ca
langcode: en
status: true
dependencies: { }

View File

@ -1,4 +1,4 @@
uuid: f47cabd7-600e-4d20-8a45-c25925397869
uuid: fa50653c-58b8-4478-ac5f-27f725726acc
langcode: en
status: true
dependencies: { }

View File

@ -1,9 +1,9 @@
uuid: 7d694cfc-8ffd-4377-b6b5-ceb35f798157
uuid: 4c86eb85-1a5f-4e66-9bb3-85fab7ecf505
langcode: en
status: true
dependencies: { }
_core:
default_config_hash: IZc_o-5WqNiJ8NTICybpBbCK-b4OU8MJrG84i5kv0J0
default_config_hash: UpJLhcKQg-FLL7eI8MUvKVK9_zsXMOmQTCpIEkRcnKY
id: d7_node_materiau
class: null
field_plugin_method: null
@ -97,7 +97,7 @@ process:
-
plugin: skip_on_empty
method: process
source: linked_breves
source: linked_articles
-
plugin: migration_lookup
migration: d7_node_article

View File

@ -1,4 +1,4 @@
uuid: 1576080d-4bde-433b-aefc-fcfe2244006e
uuid: e2b8d38d-1ae4-4812-b1f2-5b8dc0d8d7df
langcode: en
status: true
dependencies: { }

View File

@ -1,4 +1,4 @@
uuid: 381b68a4-c1fd-47a0-b623-73ce3e41922e
uuid: 2a02b09a-204e-4e04-bbdd-3f10f47856a0
langcode: en
status: true
dependencies: { }

View File

@ -1,4 +1,4 @@
uuid: 67baeccb-6842-4e0c-a337-154e6d6f6328
uuid: cb5f7d31-f610-4abd-a4b5-70c5e0db4e2c
langcode: en
status: true
dependencies: { }

View File

@ -1,4 +1,4 @@
uuid: 4a7977b6-2b87-4c60-bea4-ed94c3647f25
uuid: 9dcbad73-6576-410f-a0aa-f9d23c94ce59
langcode: en
status: true
dependencies: { }

View File

@ -1,4 +1,4 @@
uuid: eaa02e64-858c-4ece-a11a-94c2309305c6
uuid: 16eb6c05-cf5c-4810-8eb8-e6e03433c0af
langcode: en
status: true
dependencies: { }

View File

@ -1,4 +1,4 @@
uuid: 0780e11d-8a4a-44d2-8034-7e6b30809335
uuid: 56e57ba6-a3af-481c-b8f2-4e935acf1aae
langcode: en
status: true
dependencies: { }

View File

@ -1,4 +1,4 @@
uuid: ecf8eb1e-5e78-47cc-ae3b-d2b4adc3ccf7
uuid: dc2dca54-3a82-4fb9-acb1-37976ab1c665
langcode: en
status: true
dependencies: { }

View File

@ -1,4 +1,4 @@
uuid: dfbcbe3b-c1d5-400e-97a7-1fa7b15bae3c
uuid: 42034c67-180d-4220-a44e-9c5576e979b2
langcode: en
status: true
dependencies:

View File

@ -1,4 +1,4 @@
uuid: cc86e87e-083c-4285-9dc4-d4d269a7462a
uuid: f436e9b2-bb3c-4334-b7aa-bdf7c56d5591
langcode: en
status: true
dependencies: { }

View File

@ -1,4 +1,4 @@
uuid: b9ef6e1f-fc9e-4883-b8ca-865887aad62e
uuid: b9da768b-b306-4b04-b690-1630ea3b3d4f
langcode: en
status: true
dependencies:

View File

@ -23,7 +23,7 @@ permissions:
- 'administer users'
- 'break content lock'
- 'change own username'
- 'create breve content'
- 'create article content'
- 'create content translations'
- 'create corpus_documents workflow_transition'
- 'create defalut workflow_transition'
@ -43,6 +43,7 @@ permissions:
- 'create terms in showroom'
- 'create terms in tags'
- 'create terms in thesaurus'
- 'create thematique content'
- 'create workflow workflow_transition'
- 'delete any autre_son content'
- 'delete any enregistrement content'
@ -54,13 +55,14 @@ permissions:
- 'delete terms in genres'
- 'delete terms in langues'
- 'delete terms in locuteurs'
- 'edit any article content'
- 'edit any autre_son content'
- 'edit any breve content'
- 'edit any enregistrement content'
- 'edit any evenement content'
- 'edit any materiau content'
- 'edit any page content'
- 'edit any static content'
- 'edit any thematique content'
- 'edit own enregistrement content'
- 'edit terms in collectionneurs'
- 'edit terms in company'
@ -89,16 +91,16 @@ permissions:
- 'execute workflow_node_next_state_action node'
- 'revert any corpus_documents workflow_transition'
- 'revert any generique workflow_transition'
- 'revert article revisions'
- 'revert autre_son revisions'
- 'revert breve revisions'
- 'revert enregistrement revisions'
- 'revert evenement revisions'
- 'revert materiau revisions'
- 'revert page revisions'
- 'revert static revisions'
- 'revert thematique revisions'
- 'schedule corpus_documents workflow_transition'
- 'schedule generique workflow_transition'
- 'translate breve node'
- 'translate company taxonomy_term'
- 'translate enregistrement node'
- 'translate entrees taxonomy_term'
@ -117,8 +119,8 @@ permissions:
- 'use text format wysiwyg'
- 'view any contact_company profile'
- 'view any member profile'
- 'view article revisions'
- 'view autre_son revisions'
- 'view breve revisions'
- 'view contact_company profile'
- 'view enregistrement revisions'
- 'view evenement revisions'
@ -128,3 +130,4 @@ permissions:
- 'view profile'
- 'view static revisions'
- 'view the administration theme'
- 'view thematique revisions'

View File

@ -99,7 +99,7 @@ process:
-
plugin: skip_on_empty
method: process
source: linked_breves
source: linked_articles
-
plugin: migration_lookup
migration: d7_node_article

View File

@ -140,13 +140,13 @@ class D7NodeMateriau extends FieldableEntity {
$row->setSourceProperty('linked_materials', $linked_materials);
//linked breves
$linked_breves = [];
$linked_articles = [];
if(!empty($row->getSourceProperty('field_breve_ref'))){
foreach ($row->getSourceProperty('field_breve_ref') as $key => $value) {
$linked_breves[] = $value['target_id'];
$linked_articles[] = $value['target_id'];
}
}
$row->setSourceProperty('linked_breves', $linked_breves);
$row->setSourceProperty('linked_articles', $linked_articles);
// print_r($row->getSourceProperty('field_identifiant'));
// print_r($row->getSourceProperty('field_reference_materio'));