started custom migration module migrate_leshed

This commit is contained in:
2026-07-11 15:20:42 +02:00
parent a1201aff21
commit ec5b13be3c
16 changed files with 3287 additions and 244 deletions

View File

@@ -0,0 +1,61 @@
uuid: a3812d6e-7a67-4110-bb47-d1062709f806
langcode: fr
status: true
dependencies:
- migrate_google_sheets
- migrate_plus
id: projet_node
class: null
field_plugin_method: null
cck_plugin_method: null
migration_tags: null
migration_group: le_shed
label: 'Import des projets depuis Google Sheets'
source:
plugin: projet_node
data_fetcher_plugin: http
data_parser_plugin: google_sheets
urls: 'https://sheets.googleapis.com/v4/spreadsheets/1561Gv1C-IlCTmg64Z8HnznvOeLbvwhA_k1l6aq95zFA/values/Projets?key=AIzaSyBOzRmGI0voXH7Ly8eva3PmphdzGuaNKsc'
fields:
-
name: id
label: 'Unique identifier'
selector: UID
-
name: title
label: Title
selector: 'Nom du projet'
-
name: date_start
label: 'Date start'
selector: 'Date de début de projet'
-
name: date_end
label: 'Date end'
selector: 'Date de fin de projet'
ids:
id:
type: integer
process:
type:
plugin: default_value
default_value: projet
title: title
field_dates/value:
plugin: format_date
source: date_start
from_format: d/m/Y
to_format: Y-m-d
field_dates/end_value:
plugin: format_date
source: date_end
from_format: d/m/Y
to_format: Y-m-d
uid:
plugin: default_value
default_value: 3
destination:
plugin: 'entity:node'
idMap: { }
migration_dependencies: { }
include: null