From 0d8e7bb92f43d831c05e995b8ba374b03fa16f52 Mon Sep 17 00:00:00 2001 From: Bachir Soussi Chiadmi Date: Wed, 6 Feb 2019 22:05:59 +0100 Subject: [PATCH] user profiles migration almost done, + some updates --- composer.json | 5 +- composer.lock | 138 +++++-- .../devel/language/fr/views.view.watchdog.yml | 8 + ...isplay.profile.contact_company.default.yml | 65 +++ ...ty_form_display.profile.member.default.yml | 146 +++++++ ...lay.profile.contact_company.admin_view.yml | 67 +++ ...isplay.profile.contact_company.default.yml | 66 +++ ...view_display.profile.member.admin_view.yml | 141 +++++++ ...ty_view_display.profile.member.default.yml | 154 +++++++ ...re.entity_view_mode.profile.admin_view.yml | 10 + config/sync/core.extension.yml | 3 + ...ld.profile.contact_company.field_email.yml | 24 ++ ...eld.profile.contact_company.field_memo.yml | 24 ++ ...eld.profile.contact_company.field_name.yml | 24 ++ ...ld.profile.contact_company.field_phone.yml | 29 ++ ...profile.contact_company.field_position.yml | 24 ++ ...ld.profile.contact_company.field_title.yml | 25 ++ ...d.profile.member.field_activity_sector.yml | 19 + ...eld.field.profile.member.field_address.yml | 25 ++ ...field.field.profile.member.field_email.yml | 19 + ...ld.field.profile.member.field_employee.yml | 23 ++ ....field.profile.member.field_first_name.yml | 19 + .../field.field.profile.member.field_naf.yml | 24 ++ .../field.field.profile.member.field_name.yml | 19 + ...ield.profile.member.field_organization.yml | 24 ++ ...field.field.profile.member.field_phone.yml | 26 ++ ...ld.field.profile.member.field_position.yml | 19 + ...eld.field.profile.member.field_service.yml | 19 + ...field.field.profile.member.field_siret.yml | 24 ++ ...field.field.profile.member.field_title.yml | 25 ++ ...ofile.member.field_vat_number_intra_ce.yml | 24 ++ ...eld.field.profile.member.field_website.yml | 23 ++ ....storage.profile.field_activity_sector.yml | 21 + .../field.storage.profile.field_address.yml | 19 + .../field.storage.profile.field_email.yml | 18 + .../field.storage.profile.field_employee.yml | 20 + ...field.storage.profile.field_first_name.yml | 21 + .../sync/field.storage.profile.field_memo.yml | 19 + .../sync/field.storage.profile.field_naf.yml | 21 + .../sync/field.storage.profile.field_name.yml | 21 + ...eld.storage.profile.field_organization.yml | 21 + .../field.storage.profile.field_phone.yml | 19 + .../field.storage.profile.field_position.yml | 21 + .../field.storage.profile.field_service.yml | 21 + .../field.storage.profile.field_siret.yml | 21 + .../field.storage.profile.field_title.yml | 36 ++ ...rage.profile.field_vat_number_intra_ce.yml | 21 + .../field.storage.profile.field_website.yml | 19 + .../sync/language/fr/views.view.archive.yml | 3 + .../sync/language/fr/views.view.content.yml | 2 + .../language/fr/views.view.content_recent.yml | 3 + .../fr/views.view.content_translations.yml | 5 + config/sync/language/fr/views.view.files.yml | 5 + .../sync/language/fr/views.view.frontpage.yml | 3 + .../sync/language/fr/views.view.glossary.yml | 3 + .../language/fr/views.view.locked_content.yml | 3 + .../fr/views.view.maillog_overview.yml | 3 + .../sync/language/fr/views.view.profiles.yml | 25 ++ .../sync/language/fr/views.view.redirect.yml | 4 + .../language/fr/views.view.taxonomy_term.yml | 3 + .../fr/views.view.user_admin_people.yml | 2 + .../sync/language/fr/views.view.who_s_new.yml | 3 + .../language/fr/views.view.who_s_online.yml | 3 + .../fr/views.view.workflow_entity_history.yml | 3 + ...grate_plus.migration.d7_allpublicfiles.yml | 6 +- .../migrate_plus.migration.d7_node_breve.yml | 2 +- ...rate_plus.migration.d7_node_breve_i18n.yml | 2 +- ...igrate_plus.migration.d7_node_materiau.yml | 2 +- ...e_plus.migration.d7_node_materiau_i18n.yml | 2 +- ...lus.migration.d7_taxonomy_term_company.yml | 2 +- ...us.migration.d7_taxonomy_term_showroom.yml | 2 +- ...e_plus.migration.d7_taxonomy_term_tags.yml | 2 +- ...s.migration.d7_taxonomy_term_tags_i18n.yml | 2 +- ...s.migration.d7_taxonomy_term_thesaurus.yml | 2 +- ...ration.d7_taxonomy_term_thesaurus_i18n.yml | 2 +- ...migrate_plus.migration.d7_user_profile.yml | 69 ++++ .../sync/migrate_plus.migration.d7_users.yml | 9 +- ...igrate_plus.migration_group.d7_materio.yml | 4 +- config/sync/profile.type.contact_company.yml | 24 ++ config/sync/profile.type.member.yml | 24 ++ .../system.action.profile_delete_action.yml | 13 + .../system.action.profile_publish_action.yml | 13 + ...system.action.profile_unpublish_action.yml | 13 + config/sync/user.role.adherent.yml | 5 +- config/sync/user.role.admin.yml | 6 +- config/sync/user.role.admin_showroom.yml | 2 +- config/sync/user.role.alpha_testeur.yml | 7 +- config/sync/user.role.anonymous.yml | 2 +- config/sync/user.role.authenticated.yml | 3 +- config/sync/user.role.contact_company.yml | 9 +- config/sync/user.role.free_user.yml | 7 +- config/sync/user.role.premium.yml | 7 +- config/sync/user.role.root.yml | 2 +- config/sync/user.role.student.yml | 7 +- config/sync/user.role.translator.yml | 2 +- config/sync/user.role.unverified.yml | 2 +- config/sync/views.view.admin_users.yml | 341 +++++++++++++++- config/sync/views.view.profiles.yml | 384 ++++++++++++++++++ migrate-from-d7.sh | 1 + ...grate_plus.migration.d7_allpublicfiles.yml | 3 + ...us.migration.d7_taxonomy_term_showroom.yml | 4 + ...migrate_plus.migration.d7_user_profile.yml | 99 +++++ .../migrate_plus.migration.d7_users.yml | 1 + ...igrate_plus.migration_group.d7_materio.yml | 2 + .../Plugin/migrate/source/D7UserProfile.php | 168 ++++++++ 105 files changed, 2870 insertions(+), 86 deletions(-) create mode 100644 config/sync/core.entity_form_display.profile.contact_company.default.yml create mode 100644 config/sync/core.entity_form_display.profile.member.default.yml create mode 100644 config/sync/core.entity_view_display.profile.contact_company.admin_view.yml create mode 100644 config/sync/core.entity_view_display.profile.contact_company.default.yml create mode 100644 config/sync/core.entity_view_display.profile.member.admin_view.yml create mode 100644 config/sync/core.entity_view_display.profile.member.default.yml create mode 100644 config/sync/core.entity_view_mode.profile.admin_view.yml create mode 100644 config/sync/field.field.profile.contact_company.field_email.yml create mode 100644 config/sync/field.field.profile.contact_company.field_memo.yml create mode 100644 config/sync/field.field.profile.contact_company.field_name.yml create mode 100644 config/sync/field.field.profile.contact_company.field_phone.yml create mode 100644 config/sync/field.field.profile.contact_company.field_position.yml create mode 100644 config/sync/field.field.profile.contact_company.field_title.yml create mode 100644 config/sync/field.field.profile.member.field_activity_sector.yml create mode 100644 config/sync/field.field.profile.member.field_address.yml create mode 100644 config/sync/field.field.profile.member.field_email.yml create mode 100644 config/sync/field.field.profile.member.field_employee.yml create mode 100644 config/sync/field.field.profile.member.field_first_name.yml create mode 100644 config/sync/field.field.profile.member.field_naf.yml create mode 100644 config/sync/field.field.profile.member.field_name.yml create mode 100644 config/sync/field.field.profile.member.field_organization.yml create mode 100644 config/sync/field.field.profile.member.field_phone.yml create mode 100644 config/sync/field.field.profile.member.field_position.yml create mode 100644 config/sync/field.field.profile.member.field_service.yml create mode 100644 config/sync/field.field.profile.member.field_siret.yml create mode 100644 config/sync/field.field.profile.member.field_title.yml create mode 100644 config/sync/field.field.profile.member.field_vat_number_intra_ce.yml create mode 100644 config/sync/field.field.profile.member.field_website.yml create mode 100644 config/sync/field.storage.profile.field_activity_sector.yml create mode 100644 config/sync/field.storage.profile.field_address.yml create mode 100644 config/sync/field.storage.profile.field_email.yml create mode 100644 config/sync/field.storage.profile.field_employee.yml create mode 100644 config/sync/field.storage.profile.field_first_name.yml create mode 100644 config/sync/field.storage.profile.field_memo.yml create mode 100644 config/sync/field.storage.profile.field_naf.yml create mode 100644 config/sync/field.storage.profile.field_name.yml create mode 100644 config/sync/field.storage.profile.field_organization.yml create mode 100644 config/sync/field.storage.profile.field_phone.yml create mode 100644 config/sync/field.storage.profile.field_position.yml create mode 100644 config/sync/field.storage.profile.field_service.yml create mode 100644 config/sync/field.storage.profile.field_siret.yml create mode 100644 config/sync/field.storage.profile.field_title.yml create mode 100644 config/sync/field.storage.profile.field_vat_number_intra_ce.yml create mode 100644 config/sync/field.storage.profile.field_website.yml create mode 100644 config/sync/language/fr/views.view.profiles.yml create mode 100644 config/sync/migrate_plus.migration.d7_user_profile.yml create mode 100644 config/sync/profile.type.contact_company.yml create mode 100644 config/sync/profile.type.member.yml create mode 100644 config/sync/system.action.profile_delete_action.yml create mode 100644 config/sync/system.action.profile_publish_action.yml create mode 100644 config/sync/system.action.profile_unpublish_action.yml create mode 100644 config/sync/views.view.profiles.yml create mode 100644 web/modules/custom/materio_migrate/config/install/migrate_plus.migration.d7_user_profile.yml create mode 100644 web/modules/custom/materio_migrate/src/Plugin/migrate/source/D7UserProfile.php diff --git a/composer.json b/composer.json index 7a656e8..5dc0cfd 100644 --- a/composer.json +++ b/composer.json @@ -29,6 +29,7 @@ "drupal/select_translation": "1.x-dev", "drupal/telephone_formatter": "^1.0@beta", "drupal/telephone_validation": "^2.1", + "drupal/views_conditional": "1.x-dev", "drush/drush": "^9.0.0", "vlucas/phpdotenv": "^2.4", "webflo/drupal-finder": "^1.0.0", @@ -89,8 +90,8 @@ "drush/Commands/{$name}": ["type:drupal-drush"] }, "patches": { - "drupal/views_ef_fieldset": { - "Undefined index: filter-status": "https://www.drupal.org/files/issues/2019-02-05/undefined_index.patch" + "drupal/migrate_tools": { + "The --limit option does not accept a value.": "https://www.drupal.org/files/issues/2019-02-05/migrate-tools_fix-drush-options_3024399-23.patch" } }, "drupal-scaffold": { diff --git a/composer.lock b/composer.lock index b37972a..eb2126a 100644 --- a/composer.lock +++ b/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": "6f9a133dd306746085c244760c273090", + "content-hash": "da7d2b41786f2def14a0d5da5f0f59e8", "packages": [ { "name": "alchemy/zippy", @@ -3316,16 +3316,16 @@ }, { "name": "drupal/core", - "version": "8.6.7", + "version": "8.6.8", "source": { "type": "git", "url": "https://github.com/drupal/core.git", - "reference": "e0a09bda1da7552204464894811a59387608c9f9" + "reference": "0e0ccce552859f6fd3aec6b5754ad0d6ede07227" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/drupal/core/zipball/e0a09bda1da7552204464894811a59387608c9f9", - "reference": "e0a09bda1da7552204464894811a59387608c9f9", + "url": "https://api.github.com/repos/drupal/core/zipball/0e0ccce552859f6fd3aec6b5754ad0d6ede07227", + "reference": "0e0ccce552859f6fd3aec6b5754ad0d6ede07227", "shasum": "" }, "require": { @@ -3528,6 +3528,9 @@ "recurse": false, "replace": false, "merge-extra": false + }, + "patches_applied": { + "https://www.drupal.org/project/drupal/issues/2943172": "https://www.drupal.org/files/issues/2018-07-05/2943172-kernel-test-base-3.patch" } }, "autoload": { @@ -3551,7 +3554,7 @@ "GPL-2.0-or-later" ], "description": "Drupal is an open source content management platform powering millions of websites and applications.", - "time": "2019-01-16T23:30:03+00:00" + "time": "2019-02-06T15:13:52+00:00" }, { "name": "drupal/cshs", @@ -3896,7 +3899,7 @@ "source": { "type": "git", "url": "https://git.drupal.org/project/domain", - "reference": "ff62d2096b166f4709e0e0d6ddf4b120cb3647ca" + "reference": "0fed3e661813b1c254a7bd9448e773f5f1a1276a" }, "require": { "drupal/core": "^8.5" @@ -3910,8 +3913,8 @@ "dev-1.x": "1.x-dev" }, "drupal": { - "version": "8.x-1.0-alpha14+23-dev", - "datestamp": "1543354380", + "version": "8.x-1.0-alpha14+77-dev", + "datestamp": "1546629180", "security-coverage": { "status": "not-covered", "message": "Dev releases are not covered by Drupal security advisories." @@ -3937,7 +3940,7 @@ "support": { "source": "http://cgit.drupalcode.org/domain" }, - "time": "2019-01-04T19:11:55+00:00" + "time": "2019-02-05T19:47:44+00:00" }, { "name": "drupal/domain_alias", @@ -5742,6 +5745,9 @@ "services": { "drush.services.yml": "^9" } + }, + "patches_applied": { + "The --limit option does not accept a value.": "https://www.drupal.org/files/issues/2019-02-05/migrate-tools_fix-drush-options_3024399-23.patch" } }, "notification-url": "https://packages.drupal.org/8/downloads", @@ -7134,12 +7140,12 @@ } }, { - "name": "drupal/views_ef_fieldset", + "name": "drupal/views_conditional", "version": "dev-1.x", "source": { "type": "git", - "url": "https://git.drupal.org/project/views_ef_fieldset", - "reference": "f53f9e3390f1491ace93662634477bc43f844759" + "url": "https://git.drupal.org/project/views_conditional", + "reference": "414f27d55ab8d25ce8236dbd9fc359bc454fe9c8" }, "require": { "drupal/core": "*" @@ -7150,15 +7156,12 @@ "dev-1.x": "1.x-dev" }, "drupal": { - "version": "8.x-1.1+4-dev", - "datestamp": "1538990580", + "version": "8.x-1.x-dev", + "datestamp": "1514538185", "security-coverage": { "status": "not-covered", "message": "Dev releases are not covered by Drupal security advisories." } - }, - "patches_applied": { - "Undefined index: filter-status": "https://www.drupal.org/files/issues/2019-02-05/undefined_index.patch" } }, "notification-url": "https://packages.drupal.org/8/downloads", @@ -7167,20 +7170,95 @@ ], "authors": [ { - "name": "Pol", - "homepage": "https://www.drupal.org/user/47194" + "name": "MChittenden", + "homepage": "https://www.drupal.org/user/2288348" + }, + { + "name": "anand.toshniwal93", + "homepage": "https://www.drupal.org/user/3345088" + }, + { + "name": "ofry", + "homepage": "https://www.drupal.org/user/2740599" + } + ], + "description": "Allows conditional views output.", + "homepage": "https://www.drupal.org/project/views_conditional", + "support": { + "source": "http://cgit.drupalcode.org/views_conditional" + }, + "time": "2019-02-05T19:20:00+00:00" + }, + { + "name": "drupal/views_ef_fieldset", + "version": "dev-1.x", + "source": { + "type": "git", + "url": "https://git.drupal.org/project/views_ef_fieldset", + "reference": "f435fba5ce99bead7e57c32479c3e744b10d0cbf" + }, + "require": { + "drupal/core": "*", + "php": ">=7" + }, + "require-dev": { + "drupol/drupal-conventions": "^1" + }, + "type": "drupal-module", + "extra": { + "branch-alias": { + "dev-1.x": "1.x-dev" + }, + "drupal": { + "version": "8.x-1.2+0-dev", + "datestamp": "1549376580", + "security-coverage": { + "status": "not-covered", + "message": "Dev releases are not covered by Drupal security advisories." + } + }, + "grumphp": { + "config-default-path": "vendor/drupol/drupal-conventions/config/drupal8/grumphp.yml" + }, + "composer-exit-on-patch-failure": true, + "enable-patching": true, + "patches": { + "drupal/core": { + "https://www.drupal.org/project/drupal/issues/2943172": "https://www.drupal.org/files/issues/2018-07-05/2943172-kernel-test-base-3.patch" + } + } + }, + "autoload-dev": { + "psr-4": { + "Drupal\\Tests\\views_ef_fieldset\\": "./tests/" + } + }, + "notification-url": "https://packages.drupal.org/8/downloads", + "scripts": { + "grumphp": [ + "./vendor/bin/grumphp run" + ] + }, + "license": [ + "GPL-2.0+" + ], + "authors": [ + { + "name": "Pol Dellaiera", + "homepage": "https://www.drupal.org/user/47194", + "email": "pol.dellaiera@protonmail.com" }, { "name": "ciss", "homepage": "https://www.drupal.org/user/1632364" } ], - "description": "Provide an option to render the \"exposed form widgets\" in a fieldset.", - "homepage": "https://www.drupal.org/project/views_ef_fieldset", + "description": "Provide an option to render the 'exposed form widgets' in a fieldset.", + "homepage": "https://drupal.org/project/views_field_formatter", "support": { "source": "http://cgit.drupalcode.org/views_ef_fieldset" }, - "time": "2018-11-16T09:23:47+00:00" + "time": "2019-02-06T15:33:42+00:00" }, { "name": "drupal/workflow", @@ -12970,16 +13048,16 @@ }, { "name": "webflo/drupal-core-require-dev", - "version": "8.6.7", + "version": "8.6.8", "source": { "type": "git", "url": "https://github.com/webflo/drupal-core-require-dev.git", - "reference": "7a65363ed9d6a0a2030252629f1ed9e76693094e" + "reference": "d1398ae231a0592eb8d5c6a50ae63396e677745e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/webflo/drupal-core-require-dev/zipball/7a65363ed9d6a0a2030252629f1ed9e76693094e", - "reference": "7a65363ed9d6a0a2030252629f1ed9e76693094e", + "url": "https://api.github.com/repos/webflo/drupal-core-require-dev/zipball/d1398ae231a0592eb8d5c6a50ae63396e677745e", + "reference": "d1398ae231a0592eb8d5c6a50ae63396e677745e", "shasum": "" }, "require": { @@ -12987,7 +13065,7 @@ "behat/mink-goutte-driver": "^1.2", "behat/mink-selenium2-driver": "1.3.x-dev", "drupal/coder": "^8.2.12", - "drupal/core": "8.6.7", + "drupal/core": "8.6.8", "jcalderonzumba/gastonjs": "^1.0.2", "jcalderonzumba/mink-phantomjs-driver": "^0.3.1", "mikey179/vfsstream": "^1.2", @@ -13003,7 +13081,7 @@ "GPL-2.0-or-later" ], "description": "require-dev dependencies from drupal/core", - "time": "2019-01-17T00:01:35+00:00" + "time": "2019-02-06T15:31:35+00:00" } ], "aliases": [], @@ -13014,6 +13092,7 @@ "drupal/migrate_tools": 20, "drupal/select_translation": 20, "drupal/telephone_formatter": 10, + "drupal/views_conditional": 20, "drupal/advanced_text_formatter": 10, "drupal/autocomplete_deluxe": 10, "drupal/better_exposed_filters": 15, @@ -13043,7 +13122,6 @@ "drupal/translation_views": 15, "drupal/toolbar_themes": 15, "drupal/ultimate_cron": 15, - "drupal/views_ef_fieldset": 20, "drupal/workflow": 20 }, "prefer-stable": true, diff --git a/config/devel/language/fr/views.view.watchdog.yml b/config/devel/language/fr/views.view.watchdog.yml index 0d2cf9f..3264a38 100644 --- a/config/devel/language/fr/views.view.watchdog.yml +++ b/config/devel/language/fr/views.view.watchdog.yml @@ -7,6 +7,8 @@ display: submit_button: Filtrer reset_button_label: Réinitialiser exposed_sorts_label: 'Trier par' + sort_asc_label: Asc + sort_desc_label: Desc pager: options: expose: @@ -14,5 +16,11 @@ display: items_per_page_options_all_label: '- Tout -' offset_label: Décalage fields: + type: + label: Type link: label: Actions + filters: + type: + expose: + label: Type diff --git a/config/sync/core.entity_form_display.profile.contact_company.default.yml b/config/sync/core.entity_form_display.profile.contact_company.default.yml new file mode 100644 index 0000000..d7ab36f --- /dev/null +++ b/config/sync/core.entity_form_display.profile.contact_company.default.yml @@ -0,0 +1,65 @@ +uuid: fed088dd-e350-4fef-b12b-7dc5f0dc030d +langcode: en +status: true +dependencies: + config: + - field.field.profile.contact_company.field_email + - field.field.profile.contact_company.field_memo + - field.field.profile.contact_company.field_name + - field.field.profile.contact_company.field_phone + - field.field.profile.contact_company.field_position + - field.field.profile.contact_company.field_title + - profile.type.contact_company + module: + - telephone +id: profile.contact_company.default +targetEntityType: profile +bundle: contact_company +mode: default +content: + field_email: + weight: 6 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: email_default + region: content + field_memo: + weight: 5 + settings: + rows: 5 + placeholder: '' + third_party_settings: { } + type: string_textarea + region: content + field_name: + weight: 1 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: string_textfield + region: content + field_phone: + weight: 4 + settings: + placeholder: '' + third_party_settings: { } + type: telephone_default + region: content + field_position: + weight: 2 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: string_textfield + region: content + field_title: + weight: 0 + settings: { } + third_party_settings: { } + type: options_select + region: content +hidden: { } diff --git a/config/sync/core.entity_form_display.profile.member.default.yml b/config/sync/core.entity_form_display.profile.member.default.yml new file mode 100644 index 0000000..72c167b --- /dev/null +++ b/config/sync/core.entity_form_display.profile.member.default.yml @@ -0,0 +1,146 @@ +uuid: 6f823f97-5022-4a61-b2ef-10c0fa3e91a1 +langcode: en +status: true +dependencies: + config: + - field.field.profile.member.field_activity_sector + - field.field.profile.member.field_address + - field.field.profile.member.field_email + - field.field.profile.member.field_employee + - field.field.profile.member.field_first_name + - field.field.profile.member.field_naf + - field.field.profile.member.field_name + - field.field.profile.member.field_organization + - field.field.profile.member.field_phone + - field.field.profile.member.field_position + - field.field.profile.member.field_service + - field.field.profile.member.field_siret + - field.field.profile.member.field_title + - field.field.profile.member.field_vat_number_intra_ce + - field.field.profile.member.field_website + - profile.type.member + module: + - address + - link + - telephone +id: profile.member.default +targetEntityType: profile +bundle: member +mode: default +content: + field_activity_sector: + weight: 4 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: string_textfield + region: content + field_address: + weight: 14 + settings: + default_country: null + third_party_settings: { } + type: address_default + region: content + field_email: + weight: 15 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: email_default + region: content + field_employee: + weight: 16 + settings: + placeholder: '' + third_party_settings: { } + type: number + region: content + field_first_name: + weight: 1 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: string_textfield + region: content + field_naf: + weight: 8 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: string_textfield + region: content + field_name: + weight: 2 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: string_textfield + region: content + field_organization: + weight: 3 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: string_textfield + region: content + field_phone: + weight: 13 + settings: + placeholder: '' + third_party_settings: { } + type: telephone_default + region: content + field_position: + weight: 5 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: string_textfield + region: content + field_service: + weight: 6 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: string_textfield + region: content + field_siret: + weight: 9 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: string_textfield + region: content + field_title: + weight: 0 + settings: { } + third_party_settings: { } + type: options_select + region: content + field_vat_number_intra_ce: + weight: 10 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: string_textfield + region: content + field_website: + weight: 12 + settings: + placeholder_url: '' + placeholder_title: '' + third_party_settings: { } + type: link_default + region: content +hidden: { } diff --git a/config/sync/core.entity_view_display.profile.contact_company.admin_view.yml b/config/sync/core.entity_view_display.profile.contact_company.admin_view.yml new file mode 100644 index 0000000..c380d0c --- /dev/null +++ b/config/sync/core.entity_view_display.profile.contact_company.admin_view.yml @@ -0,0 +1,67 @@ +uuid: fac72b98-d110-49f3-966f-1aec4430468e +langcode: en +status: true +dependencies: + config: + - core.entity_view_mode.profile.admin_view + - field.field.profile.contact_company.field_email + - field.field.profile.contact_company.field_memo + - field.field.profile.contact_company.field_name + - field.field.profile.contact_company.field_phone + - field.field.profile.contact_company.field_position + - field.field.profile.contact_company.field_title + - profile.type.contact_company + module: + - options + - telephone +id: profile.contact_company.admin_view +targetEntityType: profile +bundle: contact_company +mode: admin_view +content: + field_email: + weight: 4 + label: above + settings: { } + third_party_settings: { } + type: basic_string + region: content + field_memo: + weight: 5 + label: above + settings: { } + third_party_settings: { } + type: basic_string + region: content + field_name: + weight: 1 + label: above + settings: + link_to_entity: false + third_party_settings: { } + type: string + region: content + field_phone: + weight: 3 + label: above + settings: + title: '' + third_party_settings: { } + type: telephone_link + region: content + field_position: + weight: 2 + label: above + settings: + link_to_entity: false + third_party_settings: { } + type: string + region: content + field_title: + weight: 0 + label: above + settings: { } + third_party_settings: { } + type: list_default + region: content +hidden: { } diff --git a/config/sync/core.entity_view_display.profile.contact_company.default.yml b/config/sync/core.entity_view_display.profile.contact_company.default.yml new file mode 100644 index 0000000..c44a457 --- /dev/null +++ b/config/sync/core.entity_view_display.profile.contact_company.default.yml @@ -0,0 +1,66 @@ +uuid: 6cdd6ea7-9fe6-421c-995a-adeed26bcc56 +langcode: en +status: true +dependencies: + config: + - field.field.profile.contact_company.field_email + - field.field.profile.contact_company.field_memo + - field.field.profile.contact_company.field_name + - field.field.profile.contact_company.field_phone + - field.field.profile.contact_company.field_position + - field.field.profile.contact_company.field_title + - profile.type.contact_company + module: + - options + - telephone +id: profile.contact_company.default +targetEntityType: profile +bundle: contact_company +mode: default +content: + field_email: + weight: 4 + label: above + settings: { } + third_party_settings: { } + type: basic_string + region: content + field_memo: + weight: 5 + label: above + settings: { } + third_party_settings: { } + type: basic_string + region: content + field_name: + weight: 1 + label: above + settings: + link_to_entity: false + third_party_settings: { } + type: string + region: content + field_phone: + weight: 3 + label: above + settings: + title: '' + third_party_settings: { } + type: telephone_link + region: content + field_position: + weight: 2 + label: above + settings: + link_to_entity: false + third_party_settings: { } + type: string + region: content + field_title: + weight: 0 + label: above + settings: { } + third_party_settings: { } + type: list_default + region: content +hidden: { } diff --git a/config/sync/core.entity_view_display.profile.member.admin_view.yml b/config/sync/core.entity_view_display.profile.member.admin_view.yml new file mode 100644 index 0000000..9b945a2 --- /dev/null +++ b/config/sync/core.entity_view_display.profile.member.admin_view.yml @@ -0,0 +1,141 @@ +uuid: ee568cec-98f2-4ff8-9d55-3c5554ddd0af +langcode: en +status: true +dependencies: + config: + - core.entity_view_mode.profile.admin_view + - field.field.profile.member.field_activity_sector + - field.field.profile.member.field_address + - field.field.profile.member.field_email + - field.field.profile.member.field_employee + - field.field.profile.member.field_first_name + - field.field.profile.member.field_naf + - field.field.profile.member.field_name + - field.field.profile.member.field_organization + - field.field.profile.member.field_phone + - field.field.profile.member.field_position + - field.field.profile.member.field_service + - field.field.profile.member.field_siret + - field.field.profile.member.field_title + - field.field.profile.member.field_vat_number_intra_ce + - field.field.profile.member.field_website + - profile.type.member + module: + - address + - link + - options + - telephone +id: profile.member.admin_view +targetEntityType: profile +bundle: member +mode: admin_view +content: + field_activity_sector: + weight: 2 + label: above + settings: + link_to_entity: false + third_party_settings: { } + type: string + region: content + field_address: + weight: 8 + label: above + settings: { } + third_party_settings: { } + type: address_default + region: content + field_email: + weight: 6 + label: above + settings: { } + third_party_settings: { } + type: basic_string + region: content + field_employee: + weight: 9 + label: above + settings: + thousand_separator: '' + prefix_suffix: true + third_party_settings: { } + type: number_integer + region: content + field_naf: + weight: 10 + label: above + settings: + link_to_entity: false + third_party_settings: { } + type: string + region: content + field_organization: + weight: 1 + label: above + settings: + link_to_entity: false + third_party_settings: { } + type: string + region: content + field_phone: + weight: 7 + label: above + settings: + title: '' + third_party_settings: { } + type: telephone_link + region: content + field_position: + weight: 3 + label: above + settings: + link_to_entity: false + third_party_settings: { } + type: string + region: content + field_service: + weight: 4 + label: above + settings: + link_to_entity: false + third_party_settings: { } + type: string + region: content + field_siret: + weight: 11 + label: above + settings: + link_to_entity: false + third_party_settings: { } + type: string + region: content + field_title: + weight: 0 + label: above + settings: { } + third_party_settings: { } + type: list_default + region: content + field_vat_number_intra_ce: + weight: 12 + label: above + settings: + link_to_entity: false + third_party_settings: { } + type: string + region: content + field_website: + weight: 5 + label: above + settings: + trim_length: 80 + url_only: false + url_plain: false + rel: '' + target: '' + third_party_settings: { } + type: link + region: content +hidden: + field_first_name: true + field_name: true diff --git a/config/sync/core.entity_view_display.profile.member.default.yml b/config/sync/core.entity_view_display.profile.member.default.yml new file mode 100644 index 0000000..f518c93 --- /dev/null +++ b/config/sync/core.entity_view_display.profile.member.default.yml @@ -0,0 +1,154 @@ +uuid: bb73cd70-6cf0-435a-b585-2ecdc91dd202 +langcode: en +status: true +dependencies: + config: + - field.field.profile.member.field_activity_sector + - field.field.profile.member.field_address + - field.field.profile.member.field_email + - field.field.profile.member.field_employee + - field.field.profile.member.field_first_name + - field.field.profile.member.field_naf + - field.field.profile.member.field_name + - field.field.profile.member.field_organization + - field.field.profile.member.field_phone + - field.field.profile.member.field_position + - field.field.profile.member.field_service + - field.field.profile.member.field_siret + - field.field.profile.member.field_title + - field.field.profile.member.field_vat_number_intra_ce + - field.field.profile.member.field_website + - profile.type.member + module: + - address + - link + - options + - telephone +id: profile.member.default +targetEntityType: profile +bundle: member +mode: default +content: + field_activity_sector: + weight: 4 + label: above + settings: + link_to_entity: false + third_party_settings: { } + type: string + region: content + field_address: + weight: 14 + label: above + settings: { } + third_party_settings: { } + type: address_default + region: content + field_email: + weight: 15 + label: above + settings: { } + third_party_settings: { } + type: basic_string + region: content + field_employee: + weight: 16 + label: above + settings: + thousand_separator: '' + prefix_suffix: true + third_party_settings: { } + type: number_integer + region: content + field_first_name: + weight: 1 + label: above + settings: + link_to_entity: false + third_party_settings: { } + type: string + region: content + field_naf: + weight: 8 + label: above + settings: + link_to_entity: false + third_party_settings: { } + type: string + region: content + field_name: + weight: 2 + label: above + settings: + link_to_entity: false + third_party_settings: { } + type: string + region: content + field_organization: + weight: 3 + label: above + settings: + link_to_entity: false + third_party_settings: { } + type: string + region: content + field_phone: + weight: 13 + label: above + settings: + title: '' + third_party_settings: { } + type: telephone_link + region: content + field_position: + weight: 5 + label: above + settings: + link_to_entity: false + third_party_settings: { } + type: string + region: content + field_service: + weight: 6 + label: above + settings: + link_to_entity: false + third_party_settings: { } + type: string + region: content + field_siret: + weight: 9 + label: above + settings: + link_to_entity: false + third_party_settings: { } + type: string + region: content + field_title: + weight: 0 + label: above + settings: { } + third_party_settings: { } + type: list_default + region: content + field_vat_number_intra_ce: + weight: 10 + label: above + settings: + link_to_entity: false + third_party_settings: { } + type: string + region: content + field_website: + weight: 12 + label: above + settings: + trim_length: 80 + url_only: false + url_plain: false + rel: '' + target: '' + third_party_settings: { } + type: link + region: content +hidden: { } diff --git a/config/sync/core.entity_view_mode.profile.admin_view.yml b/config/sync/core.entity_view_mode.profile.admin_view.yml new file mode 100644 index 0000000..2d365d2 --- /dev/null +++ b/config/sync/core.entity_view_mode.profile.admin_view.yml @@ -0,0 +1,10 @@ +uuid: 3827efc7-996c-4bac-86f5-d1d35865deff +langcode: en +status: true +dependencies: + module: + - profile +id: profile.admin_view +label: 'Admin View' +targetEntityType: profile +cache: true diff --git a/config/sync/core.extension.yml b/config/sync/core.extension.yml index bc4dab5..ab10101 100644 --- a/config/sync/core.extension.yml +++ b/config/sync/core.extension.yml @@ -38,6 +38,7 @@ module: editor: 0 email_registration: 0 embed: 0 + entity: 0 entity_browser: 0 entity_browser_enhanced: 0 field: 0 @@ -78,6 +79,7 @@ module: path_alias_xt: 0 pathologic: 0 persistent_login: 0 + profile: 0 redirect: 0 redis: 0 responsive_image: 0 @@ -105,6 +107,7 @@ module: video_embed_wysiwyg: 0 views_bulk_edit: 0 views_bulk_operations: 0 + views_conditional: 0 views_ef_fieldset: 0 workflow: 0 workflow_access: 0 diff --git a/config/sync/field.field.profile.contact_company.field_email.yml b/config/sync/field.field.profile.contact_company.field_email.yml new file mode 100644 index 0000000..a9cef23 --- /dev/null +++ b/config/sync/field.field.profile.contact_company.field_email.yml @@ -0,0 +1,24 @@ +uuid: 194c9bdb-6c4d-4802-ae4f-b641a5e67474 +langcode: en +status: true +dependencies: + config: + - field.storage.profile.field_email + - profile.type.contact_company + module: + - profile +third_party_settings: + profile: + profile_private: true +id: profile.contact_company.field_email +field_name: field_email +entity_type: profile +bundle: contact_company +label: Email +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: email diff --git a/config/sync/field.field.profile.contact_company.field_memo.yml b/config/sync/field.field.profile.contact_company.field_memo.yml new file mode 100644 index 0000000..b16c6a0 --- /dev/null +++ b/config/sync/field.field.profile.contact_company.field_memo.yml @@ -0,0 +1,24 @@ +uuid: 60203646-357b-467b-9f76-69e9e56dd9df +langcode: en +status: true +dependencies: + config: + - field.storage.profile.field_memo + - profile.type.contact_company + module: + - profile +third_party_settings: + profile: + profile_private: true +id: profile.contact_company.field_memo +field_name: field_memo +entity_type: profile +bundle: contact_company +label: Memo +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string_long diff --git a/config/sync/field.field.profile.contact_company.field_name.yml b/config/sync/field.field.profile.contact_company.field_name.yml new file mode 100644 index 0000000..844f43c --- /dev/null +++ b/config/sync/field.field.profile.contact_company.field_name.yml @@ -0,0 +1,24 @@ +uuid: 33edcfa9-deec-4305-b946-e19d1ccbd4d7 +langcode: en +status: true +dependencies: + config: + - field.storage.profile.field_name + - profile.type.contact_company + module: + - profile +third_party_settings: + profile: + profile_private: true +id: profile.contact_company.field_name +field_name: field_name +entity_type: profile +bundle: contact_company +label: Name +description: '' +required: false +translatable: true +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/config/sync/field.field.profile.contact_company.field_phone.yml b/config/sync/field.field.profile.contact_company.field_phone.yml new file mode 100644 index 0000000..65660ef --- /dev/null +++ b/config/sync/field.field.profile.contact_company.field_phone.yml @@ -0,0 +1,29 @@ +uuid: 6f8c2843-4884-4f70-be6f-be7382ceb42e +langcode: en +status: true +dependencies: + config: + - field.storage.profile.field_phone + - profile.type.contact_company + module: + - profile + - telephone + - telephone_validation +third_party_settings: + profile: + profile_private: true + telephone_validation: + format: 0 + country: { } +id: profile.contact_company.field_phone +field_name: field_phone +entity_type: profile +bundle: contact_company +label: Phone +description: '' +required: false +translatable: true +default_value: { } +default_value_callback: '' +settings: { } +field_type: telephone diff --git a/config/sync/field.field.profile.contact_company.field_position.yml b/config/sync/field.field.profile.contact_company.field_position.yml new file mode 100644 index 0000000..fa0f84a --- /dev/null +++ b/config/sync/field.field.profile.contact_company.field_position.yml @@ -0,0 +1,24 @@ +uuid: 0b3110b7-acc1-4696-80e3-ab72cb4bb54e +langcode: en +status: true +dependencies: + config: + - field.storage.profile.field_position + - profile.type.contact_company + module: + - profile +third_party_settings: + profile: + profile_private: true +id: profile.contact_company.field_position +field_name: field_position +entity_type: profile +bundle: contact_company +label: Position +description: '' +required: false +translatable: true +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/config/sync/field.field.profile.contact_company.field_title.yml b/config/sync/field.field.profile.contact_company.field_title.yml new file mode 100644 index 0000000..b0f46c3 --- /dev/null +++ b/config/sync/field.field.profile.contact_company.field_title.yml @@ -0,0 +1,25 @@ +uuid: 2f647190-8956-4b27-bb23-49667e0929bb +langcode: en +status: true +dependencies: + config: + - field.storage.profile.field_title + - profile.type.contact_company + module: + - options + - profile +third_party_settings: + profile: + profile_private: true +id: profile.contact_company.field_title +field_name: field_title +entity_type: profile +bundle: contact_company +label: Title +description: '' +required: false +translatable: true +default_value: { } +default_value_callback: '' +settings: { } +field_type: list_string diff --git a/config/sync/field.field.profile.member.field_activity_sector.yml b/config/sync/field.field.profile.member.field_activity_sector.yml new file mode 100644 index 0000000..56bfdfb --- /dev/null +++ b/config/sync/field.field.profile.member.field_activity_sector.yml @@ -0,0 +1,19 @@ +uuid: 37d4bd1a-480a-41c8-b1a1-5eb2f17204a0 +langcode: en +status: true +dependencies: + config: + - field.storage.profile.field_activity_sector + - profile.type.member +id: profile.member.field_activity_sector +field_name: field_activity_sector +entity_type: profile +bundle: member +label: 'Activity Sector' +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/config/sync/field.field.profile.member.field_address.yml b/config/sync/field.field.profile.member.field_address.yml new file mode 100644 index 0000000..ee84326 --- /dev/null +++ b/config/sync/field.field.profile.member.field_address.yml @@ -0,0 +1,25 @@ +uuid: 64e8ebb3-1d6d-4420-9e18-fbcfbd1ca177 +langcode: en +status: true +dependencies: + config: + - field.storage.profile.field_address + - profile.type.member + module: + - address +id: profile.member.field_address +field_name: field_address +entity_type: profile +bundle: member +label: Address +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + available_countries: { } + langcode_override: '' + field_overrides: { } + fields: { } +field_type: address diff --git a/config/sync/field.field.profile.member.field_email.yml b/config/sync/field.field.profile.member.field_email.yml new file mode 100644 index 0000000..5dad52d --- /dev/null +++ b/config/sync/field.field.profile.member.field_email.yml @@ -0,0 +1,19 @@ +uuid: 223c4a2c-9362-4df2-81a5-5533ce1cb89e +langcode: en +status: true +dependencies: + config: + - field.storage.profile.field_email + - profile.type.member +id: profile.member.field_email +field_name: field_email +entity_type: profile +bundle: member +label: Email +description: '' +required: false +translatable: true +default_value: { } +default_value_callback: '' +settings: { } +field_type: email diff --git a/config/sync/field.field.profile.member.field_employee.yml b/config/sync/field.field.profile.member.field_employee.yml new file mode 100644 index 0000000..3087df2 --- /dev/null +++ b/config/sync/field.field.profile.member.field_employee.yml @@ -0,0 +1,23 @@ +uuid: 988ce5e7-3f4c-4ca4-8662-a10da51eb12a +langcode: en +status: true +dependencies: + config: + - field.storage.profile.field_employee + - profile.type.member +id: profile.member.field_employee +field_name: field_employee +entity_type: profile +bundle: member +label: Employee +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + min: 1 + max: null + prefix: '' + suffix: '' +field_type: integer diff --git a/config/sync/field.field.profile.member.field_first_name.yml b/config/sync/field.field.profile.member.field_first_name.yml new file mode 100644 index 0000000..54eb9cc --- /dev/null +++ b/config/sync/field.field.profile.member.field_first_name.yml @@ -0,0 +1,19 @@ +uuid: 5f659318-284e-474d-a351-917d0b44ca62 +langcode: en +status: true +dependencies: + config: + - field.storage.profile.field_first_name + - profile.type.member +id: profile.member.field_first_name +field_name: field_first_name +entity_type: profile +bundle: member +label: 'First Name' +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/config/sync/field.field.profile.member.field_naf.yml b/config/sync/field.field.profile.member.field_naf.yml new file mode 100644 index 0000000..37b42cf --- /dev/null +++ b/config/sync/field.field.profile.member.field_naf.yml @@ -0,0 +1,24 @@ +uuid: 3b629927-51f3-48d1-b1fe-6e9df714fa0f +langcode: en +status: true +dependencies: + config: + - field.storage.profile.field_naf + - profile.type.member + module: + - profile +third_party_settings: + profile: + profile_private: true +id: profile.member.field_naf +field_name: field_naf +entity_type: profile +bundle: member +label: NAF +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/config/sync/field.field.profile.member.field_name.yml b/config/sync/field.field.profile.member.field_name.yml new file mode 100644 index 0000000..4d1a243 --- /dev/null +++ b/config/sync/field.field.profile.member.field_name.yml @@ -0,0 +1,19 @@ +uuid: 3e88ddce-b74b-4088-9569-737350ab2c4f +langcode: en +status: true +dependencies: + config: + - field.storage.profile.field_name + - profile.type.member +id: profile.member.field_name +field_name: field_name +entity_type: profile +bundle: member +label: Name +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/config/sync/field.field.profile.member.field_organization.yml b/config/sync/field.field.profile.member.field_organization.yml new file mode 100644 index 0000000..0b14f8a --- /dev/null +++ b/config/sync/field.field.profile.member.field_organization.yml @@ -0,0 +1,24 @@ +uuid: b485808e-b9e5-47df-99cb-23b59ce510a9 +langcode: en +status: true +dependencies: + config: + - field.storage.profile.field_organization + - profile.type.member + module: + - profile +third_party_settings: + profile: + profile_private: true +id: profile.member.field_organization +field_name: field_organization +entity_type: profile +bundle: member +label: Organization +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/config/sync/field.field.profile.member.field_phone.yml b/config/sync/field.field.profile.member.field_phone.yml new file mode 100644 index 0000000..7c837c7 --- /dev/null +++ b/config/sync/field.field.profile.member.field_phone.yml @@ -0,0 +1,26 @@ +uuid: 49e56927-be85-4c59-8855-7b561177f8eb +langcode: en +status: true +dependencies: + config: + - field.storage.profile.field_phone + - profile.type.member + module: + - telephone + - telephone_validation +third_party_settings: + telephone_validation: + format: 0 + country: { } +id: profile.member.field_phone +field_name: field_phone +entity_type: profile +bundle: member +label: Phone +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: telephone diff --git a/config/sync/field.field.profile.member.field_position.yml b/config/sync/field.field.profile.member.field_position.yml new file mode 100644 index 0000000..58e5b84 --- /dev/null +++ b/config/sync/field.field.profile.member.field_position.yml @@ -0,0 +1,19 @@ +uuid: 993c89c8-45ff-4372-b853-ef1420881594 +langcode: en +status: true +dependencies: + config: + - field.storage.profile.field_position + - profile.type.member +id: profile.member.field_position +field_name: field_position +entity_type: profile +bundle: member +label: Position +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/config/sync/field.field.profile.member.field_service.yml b/config/sync/field.field.profile.member.field_service.yml new file mode 100644 index 0000000..c92ec8c --- /dev/null +++ b/config/sync/field.field.profile.member.field_service.yml @@ -0,0 +1,19 @@ +uuid: 837c5317-5d0e-4331-8f6c-fdc7399a8c3e +langcode: en +status: true +dependencies: + config: + - field.storage.profile.field_service + - profile.type.member +id: profile.member.field_service +field_name: field_service +entity_type: profile +bundle: member +label: Service +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/config/sync/field.field.profile.member.field_siret.yml b/config/sync/field.field.profile.member.field_siret.yml new file mode 100644 index 0000000..38509cd --- /dev/null +++ b/config/sync/field.field.profile.member.field_siret.yml @@ -0,0 +1,24 @@ +uuid: 35fc1aa7-936a-4271-b637-6888fcc8b115 +langcode: en +status: true +dependencies: + config: + - field.storage.profile.field_siret + - profile.type.member + module: + - profile +third_party_settings: + profile: + profile_private: true +id: profile.member.field_siret +field_name: field_siret +entity_type: profile +bundle: member +label: SIRET +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/config/sync/field.field.profile.member.field_title.yml b/config/sync/field.field.profile.member.field_title.yml new file mode 100644 index 0000000..a8d2da2 --- /dev/null +++ b/config/sync/field.field.profile.member.field_title.yml @@ -0,0 +1,25 @@ +uuid: 49c0e291-66ea-4eb3-86b0-dfa5ac222b43 +langcode: en +status: true +dependencies: + config: + - field.storage.profile.field_title + - profile.type.member + module: + - options + - profile +third_party_settings: + profile: + profile_private: true +id: profile.member.field_title +field_name: field_title +entity_type: profile +bundle: member +label: Title +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: list_string diff --git a/config/sync/field.field.profile.member.field_vat_number_intra_ce.yml b/config/sync/field.field.profile.member.field_vat_number_intra_ce.yml new file mode 100644 index 0000000..e4a0fa5 --- /dev/null +++ b/config/sync/field.field.profile.member.field_vat_number_intra_ce.yml @@ -0,0 +1,24 @@ +uuid: 60964ab2-7ea2-4502-b44b-727f9af1e1e1 +langcode: en +status: true +dependencies: + config: + - field.storage.profile.field_vat_number_intra_ce + - profile.type.member + module: + - profile +third_party_settings: + profile: + profile_private: true +id: profile.member.field_vat_number_intra_ce +field_name: field_vat_number_intra_ce +entity_type: profile +bundle: member +label: 'VAT number intra CE' +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/config/sync/field.field.profile.member.field_website.yml b/config/sync/field.field.profile.member.field_website.yml new file mode 100644 index 0000000..03be390 --- /dev/null +++ b/config/sync/field.field.profile.member.field_website.yml @@ -0,0 +1,23 @@ +uuid: 6c07690a-2b71-4cff-9763-af05323f955a +langcode: en +status: true +dependencies: + config: + - field.storage.profile.field_website + - profile.type.member + module: + - link +id: profile.member.field_website +field_name: field_website +entity_type: profile +bundle: member +label: Website +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + link_type: 16 + title: 0 +field_type: link diff --git a/config/sync/field.storage.profile.field_activity_sector.yml b/config/sync/field.storage.profile.field_activity_sector.yml new file mode 100644 index 0000000..e3bbba6 --- /dev/null +++ b/config/sync/field.storage.profile.field_activity_sector.yml @@ -0,0 +1,21 @@ +uuid: c0cd0a53-2962-413a-8dcc-eb659f2ae53a +langcode: en +status: true +dependencies: + module: + - profile +id: profile.field_activity_sector +field_name: field_activity_sector +entity_type: profile +type: string +settings: + max_length: 255 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/field.storage.profile.field_address.yml b/config/sync/field.storage.profile.field_address.yml new file mode 100644 index 0000000..bfa06fb --- /dev/null +++ b/config/sync/field.storage.profile.field_address.yml @@ -0,0 +1,19 @@ +uuid: 0ea5b50e-ec35-4663-8b61-336233853e72 +langcode: en +status: true +dependencies: + module: + - address + - profile +id: profile.field_address +field_name: field_address +entity_type: profile +type: address +settings: { } +module: address +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/field.storage.profile.field_email.yml b/config/sync/field.storage.profile.field_email.yml new file mode 100644 index 0000000..f600898 --- /dev/null +++ b/config/sync/field.storage.profile.field_email.yml @@ -0,0 +1,18 @@ +uuid: 9ca9618e-885d-4932-87db-d2ce0adbd08b +langcode: en +status: true +dependencies: + module: + - profile +id: profile.field_email +field_name: field_email +entity_type: profile +type: email +settings: { } +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/field.storage.profile.field_employee.yml b/config/sync/field.storage.profile.field_employee.yml new file mode 100644 index 0000000..4d84d80 --- /dev/null +++ b/config/sync/field.storage.profile.field_employee.yml @@ -0,0 +1,20 @@ +uuid: d05af91f-b289-4c14-90d6-f9f8a573c4e7 +langcode: en +status: true +dependencies: + module: + - profile +id: profile.field_employee +field_name: field_employee +entity_type: profile +type: integer +settings: + unsigned: false + size: normal +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/field.storage.profile.field_first_name.yml b/config/sync/field.storage.profile.field_first_name.yml new file mode 100644 index 0000000..f19e555 --- /dev/null +++ b/config/sync/field.storage.profile.field_first_name.yml @@ -0,0 +1,21 @@ +uuid: a64b77c0-2a92-40ac-b4ca-c4f67c9c47f7 +langcode: en +status: true +dependencies: + module: + - profile +id: profile.field_first_name +field_name: field_first_name +entity_type: profile +type: string +settings: + max_length: 255 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/field.storage.profile.field_memo.yml b/config/sync/field.storage.profile.field_memo.yml new file mode 100644 index 0000000..7432c4d --- /dev/null +++ b/config/sync/field.storage.profile.field_memo.yml @@ -0,0 +1,19 @@ +uuid: 0703e034-c1ad-4f42-b2fa-f4c5824568e2 +langcode: en +status: true +dependencies: + module: + - profile +id: profile.field_memo +field_name: field_memo +entity_type: profile +type: string_long +settings: + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/field.storage.profile.field_naf.yml b/config/sync/field.storage.profile.field_naf.yml new file mode 100644 index 0000000..3e1a4da --- /dev/null +++ b/config/sync/field.storage.profile.field_naf.yml @@ -0,0 +1,21 @@ +uuid: 37d0ffc1-e8bb-4dde-a79d-e9f11e80dab3 +langcode: en +status: true +dependencies: + module: + - profile +id: profile.field_naf +field_name: field_naf +entity_type: profile +type: string +settings: + max_length: 255 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/field.storage.profile.field_name.yml b/config/sync/field.storage.profile.field_name.yml new file mode 100644 index 0000000..fb8951a --- /dev/null +++ b/config/sync/field.storage.profile.field_name.yml @@ -0,0 +1,21 @@ +uuid: ffbaf56d-cf49-4f31-be49-7d7e38803375 +langcode: en +status: true +dependencies: + module: + - profile +id: profile.field_name +field_name: field_name +entity_type: profile +type: string +settings: + max_length: 255 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/field.storage.profile.field_organization.yml b/config/sync/field.storage.profile.field_organization.yml new file mode 100644 index 0000000..9e1d93f --- /dev/null +++ b/config/sync/field.storage.profile.field_organization.yml @@ -0,0 +1,21 @@ +uuid: 9262dbae-6ca7-4ffe-8e97-010ea89a82ab +langcode: en +status: true +dependencies: + module: + - profile +id: profile.field_organization +field_name: field_organization +entity_type: profile +type: string +settings: + max_length: 255 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/field.storage.profile.field_phone.yml b/config/sync/field.storage.profile.field_phone.yml new file mode 100644 index 0000000..7f79087 --- /dev/null +++ b/config/sync/field.storage.profile.field_phone.yml @@ -0,0 +1,19 @@ +uuid: 935dc6a1-6ebc-4c85-9eae-7f40841602c9 +langcode: en +status: true +dependencies: + module: + - profile + - telephone +id: profile.field_phone +field_name: field_phone +entity_type: profile +type: telephone +settings: { } +module: telephone +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/field.storage.profile.field_position.yml b/config/sync/field.storage.profile.field_position.yml new file mode 100644 index 0000000..e121502 --- /dev/null +++ b/config/sync/field.storage.profile.field_position.yml @@ -0,0 +1,21 @@ +uuid: bc50de88-9475-44ee-85ad-3db3f5aef2a8 +langcode: en +status: true +dependencies: + module: + - profile +id: profile.field_position +field_name: field_position +entity_type: profile +type: string +settings: + max_length: 255 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/field.storage.profile.field_service.yml b/config/sync/field.storage.profile.field_service.yml new file mode 100644 index 0000000..f8b75df --- /dev/null +++ b/config/sync/field.storage.profile.field_service.yml @@ -0,0 +1,21 @@ +uuid: 8c143e62-06aa-4a00-ae2f-ee65e531d670 +langcode: en +status: true +dependencies: + module: + - profile +id: profile.field_service +field_name: field_service +entity_type: profile +type: string +settings: + max_length: 255 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/field.storage.profile.field_siret.yml b/config/sync/field.storage.profile.field_siret.yml new file mode 100644 index 0000000..4e89d2f --- /dev/null +++ b/config/sync/field.storage.profile.field_siret.yml @@ -0,0 +1,21 @@ +uuid: a583cc4c-3946-4a7b-836e-0e0c6e69452b +langcode: en +status: true +dependencies: + module: + - profile +id: profile.field_siret +field_name: field_siret +entity_type: profile +type: string +settings: + max_length: 255 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/field.storage.profile.field_title.yml b/config/sync/field.storage.profile.field_title.yml new file mode 100644 index 0000000..b30cce9 --- /dev/null +++ b/config/sync/field.storage.profile.field_title.yml @@ -0,0 +1,36 @@ +uuid: 1d238029-c519-422a-9528-20ca94b4431b +langcode: en +status: true +dependencies: + module: + - options + - profile +id: profile.field_title +field_name: field_title +entity_type: profile +type: list_string +settings: + allowed_values: + - + value: MR + label: Mister + - + value: MS + label: Misses + - + value: MI + label: Miss + - + value: DO + label: Doctor + - + value: PR + label: Professor + allowed_values_function: '' +module: options +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/field.storage.profile.field_vat_number_intra_ce.yml b/config/sync/field.storage.profile.field_vat_number_intra_ce.yml new file mode 100644 index 0000000..f29f555 --- /dev/null +++ b/config/sync/field.storage.profile.field_vat_number_intra_ce.yml @@ -0,0 +1,21 @@ +uuid: 33d755b1-7d80-4976-8f77-de05b8c3bcad +langcode: en +status: true +dependencies: + module: + - profile +id: profile.field_vat_number_intra_ce +field_name: field_vat_number_intra_ce +entity_type: profile +type: string +settings: + max_length: 255 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/field.storage.profile.field_website.yml b/config/sync/field.storage.profile.field_website.yml new file mode 100644 index 0000000..2154cb3 --- /dev/null +++ b/config/sync/field.storage.profile.field_website.yml @@ -0,0 +1,19 @@ +uuid: 5f7fce04-1d17-4803-a617-4c26403df804 +langcode: en +status: true +dependencies: + module: + - link + - profile +id: profile.field_website +field_name: field_website +entity_type: profile +type: link +settings: { } +module: link +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/language/fr/views.view.archive.yml b/config/sync/language/fr/views.view.archive.yml index eaf7bc0..2009adc 100644 --- a/config/sync/language/fr/views.view.archive.yml +++ b/config/sync/language/fr/views.view.archive.yml @@ -4,8 +4,11 @@ display: display_options: exposed_form: options: + submit_button: Appliquer reset_button_label: Réinitialiser exposed_sorts_label: 'Trier par' + sort_asc_label: Asc + sort_desc_label: Desc pager: options: expose: diff --git a/config/sync/language/fr/views.view.content.yml b/config/sync/language/fr/views.view.content.yml index a8f981e..4822801 100644 --- a/config/sync/language/fr/views.view.content.yml +++ b/config/sync/language/fr/views.view.content.yml @@ -8,6 +8,8 @@ display: submit_button: Filtrer reset_button_label: Réinitialiser exposed_sorts_label: 'Trier par' + sort_asc_label: Asc + sort_desc_label: Desc pager: options: tags: diff --git a/config/sync/language/fr/views.view.content_recent.yml b/config/sync/language/fr/views.view.content_recent.yml index ea83abd..eda0cdd 100644 --- a/config/sync/language/fr/views.view.content_recent.yml +++ b/config/sync/language/fr/views.view.content_recent.yml @@ -4,8 +4,11 @@ display: display_options: exposed_form: options: + submit_button: Appliquer reset_button_label: Réinitialiser exposed_sorts_label: 'Trier par' + sort_asc_label: Asc + sort_desc_label: Desc empty: area_text_custom: content: 'Aucun contenu disponible.' diff --git a/config/sync/language/fr/views.view.content_translations.yml b/config/sync/language/fr/views.view.content_translations.yml index d7bd475..2ac02c3 100644 --- a/config/sync/language/fr/views.view.content_translations.yml +++ b/config/sync/language/fr/views.view.content_translations.yml @@ -4,8 +4,11 @@ display: display_options: exposed_form: options: + submit_button: Appliquer reset_button_label: Réinitialiser exposed_sorts_label: 'Trier par' + sort_asc_label: Asc + sort_desc_label: Desc pager: options: tags: @@ -18,3 +21,5 @@ display: fields: title: label: Titre + translation_changed: + label: Modifié diff --git a/config/sync/language/fr/views.view.files.yml b/config/sync/language/fr/views.view.files.yml index 5f87aeb..da881b6 100644 --- a/config/sync/language/fr/views.view.files.yml +++ b/config/sync/language/fr/views.view.files.yml @@ -7,6 +7,8 @@ display: submit_button: Filtrer reset_button_label: Réinitialiser exposed_sorts_label: 'Trier par' + sort_asc_label: Asc + sort_desc_label: Desc pager: options: expose: @@ -33,6 +35,9 @@ display: items_per_page_label: 'Éléments par page' items_per_page_options_all_label: '- Tout -' offset_label: Décalage + fields: + entity_label: + label: Entité arguments: fid: exception: diff --git a/config/sync/language/fr/views.view.frontpage.yml b/config/sync/language/fr/views.view.frontpage.yml index 36c4d42..2d460bb 100644 --- a/config/sync/language/fr/views.view.frontpage.yml +++ b/config/sync/language/fr/views.view.frontpage.yml @@ -3,8 +3,11 @@ display: display_options: exposed_form: options: + submit_button: Appliquer reset_button_label: Réinitialiser exposed_sorts_label: 'Trier par' + sort_asc_label: Asc + sort_desc_label: Desc pager: options: expose: diff --git a/config/sync/language/fr/views.view.glossary.yml b/config/sync/language/fr/views.view.glossary.yml index 2adb638..e1088fe 100644 --- a/config/sync/language/fr/views.view.glossary.yml +++ b/config/sync/language/fr/views.view.glossary.yml @@ -4,8 +4,11 @@ display: display_options: exposed_form: options: + submit_button: Appliquer reset_button_label: Réinitialiser exposed_sorts_label: 'Trier par' + sort_asc_label: Asc + sort_desc_label: Desc pager: options: expose: diff --git a/config/sync/language/fr/views.view.locked_content.yml b/config/sync/language/fr/views.view.locked_content.yml index 9fe3c69..e6337d8 100644 --- a/config/sync/language/fr/views.view.locked_content.yml +++ b/config/sync/language/fr/views.view.locked_content.yml @@ -4,8 +4,11 @@ display: display_options: exposed_form: options: + submit_button: Appliquer reset_button_label: Réinitialiser exposed_sorts_label: 'Trier par' + sort_asc_label: Asc + sort_desc_label: Desc pager: options: tags: diff --git a/config/sync/language/fr/views.view.maillog_overview.yml b/config/sync/language/fr/views.view.maillog_overview.yml index eaf7bc0..2009adc 100644 --- a/config/sync/language/fr/views.view.maillog_overview.yml +++ b/config/sync/language/fr/views.view.maillog_overview.yml @@ -4,8 +4,11 @@ display: display_options: exposed_form: options: + submit_button: Appliquer reset_button_label: Réinitialiser exposed_sorts_label: 'Trier par' + sort_asc_label: Asc + sort_desc_label: Desc pager: options: expose: diff --git a/config/sync/language/fr/views.view.profiles.yml b/config/sync/language/fr/views.view.profiles.yml new file mode 100644 index 0000000..c9707ae --- /dev/null +++ b/config/sync/language/fr/views.view.profiles.yml @@ -0,0 +1,25 @@ +label: Profils +display: + default: + display_title: Maître + display_options: + exposed_form: + options: + submit_button: Appliquer + reset_button_label: Réinitialiser + exposed_sorts_label: 'Trier par' + sort_asc_label: Asc + sort_desc_label: Desc + arguments: + uid: + exception: + title: Tout + type: + exception: + title: Tout + status: + exception: + title: Tout + title: Profils + user_view: + display_title: 'Voir l''utilisateur' diff --git a/config/sync/language/fr/views.view.redirect.yml b/config/sync/language/fr/views.view.redirect.yml index 945aaa5..c397b64 100644 --- a/config/sync/language/fr/views.view.redirect.yml +++ b/config/sync/language/fr/views.view.redirect.yml @@ -8,6 +8,8 @@ display: submit_button: Filtrer reset_button_label: Réinitialiser exposed_sorts_label: 'Trier par' + sort_asc_label: Asc + sort_desc_label: Desc pager: options: expose: @@ -17,4 +19,6 @@ display: fields: redirect_bulk_form: action_title: 'Pour cette sélection' + created: + label: Créé(e) title: Rediriger diff --git a/config/sync/language/fr/views.view.taxonomy_term.yml b/config/sync/language/fr/views.view.taxonomy_term.yml index 6424435..286d45f 100644 --- a/config/sync/language/fr/views.view.taxonomy_term.yml +++ b/config/sync/language/fr/views.view.taxonomy_term.yml @@ -4,8 +4,11 @@ display: display_options: exposed_form: options: + submit_button: Appliquer reset_button_label: Réinitialiser exposed_sorts_label: 'Trier par' + sort_asc_label: Asc + sort_desc_label: Desc pager: options: expose: diff --git a/config/sync/language/fr/views.view.user_admin_people.yml b/config/sync/language/fr/views.view.user_admin_people.yml index 86c0829..1c5298f 100644 --- a/config/sync/language/fr/views.view.user_admin_people.yml +++ b/config/sync/language/fr/views.view.user_admin_people.yml @@ -9,6 +9,8 @@ display: submit_button: Filtrer reset_button_label: Réinitialiser exposed_sorts_label: 'Trier par' + sort_asc_label: Asc + sort_desc_label: Desc pager: options: tags: diff --git a/config/sync/language/fr/views.view.who_s_new.yml b/config/sync/language/fr/views.view.who_s_new.yml index 8a226f8..e52ca4c 100644 --- a/config/sync/language/fr/views.view.who_s_new.yml +++ b/config/sync/language/fr/views.view.who_s_new.yml @@ -4,5 +4,8 @@ display: display_options: exposed_form: options: + submit_button: Appliquer reset_button_label: Réinitialiser exposed_sorts_label: 'Trier par' + sort_asc_label: Asc + sort_desc_label: Desc diff --git a/config/sync/language/fr/views.view.who_s_online.yml b/config/sync/language/fr/views.view.who_s_online.yml index 39e7127..745ed36 100644 --- a/config/sync/language/fr/views.view.who_s_online.yml +++ b/config/sync/language/fr/views.view.who_s_online.yml @@ -4,8 +4,11 @@ display: display_options: exposed_form: options: + submit_button: Appliquer reset_button_label: Réinitialiser exposed_sorts_label: 'Trier par' + sort_asc_label: Asc + sort_desc_label: Desc filters: access: expose: diff --git a/config/sync/language/fr/views.view.workflow_entity_history.yml b/config/sync/language/fr/views.view.workflow_entity_history.yml index 47aae68..c3d93b5 100644 --- a/config/sync/language/fr/views.view.workflow_entity_history.yml +++ b/config/sync/language/fr/views.view.workflow_entity_history.yml @@ -4,8 +4,11 @@ display: display_options: exposed_form: options: + submit_button: Appliquer reset_button_label: Réinitialiser exposed_sorts_label: 'Trier par' + sort_asc_label: Asc + sort_desc_label: Desc pager: options: expose: diff --git a/config/sync/migrate_plus.migration.d7_allpublicfiles.yml b/config/sync/migrate_plus.migration.d7_allpublicfiles.yml index e49a4a7..9b49298 100644 --- a/config/sync/migrate_plus.migration.d7_allpublicfiles.yml +++ b/config/sync/migrate_plus.migration.d7_allpublicfiles.yml @@ -1,9 +1,9 @@ -uuid: ba23fbec-1d22-4a18-b572-c1a679e0aefd +uuid: 545ce18f-9c93-4101-856a-46abfbf23af8 langcode: en status: true dependencies: { } _core: - default_config_hash: WjrNh29LxegDzfT9TlEVu3Bf21NE7GVnBJDWACIN3vg + default_config_hash: s3vx8Rz_WiVJ7xdZk9aSaFRCIAvdHcywmrmhCKdAY6U id: d7_allpublicfiles class: null field_plugin_method: null @@ -11,6 +11,8 @@ cck_plugin_method: null migration_tags: - 'Drupal 7' - Content + - Materio + - Files migration_group: d7_materio label: 'Public files' source: diff --git a/config/sync/migrate_plus.migration.d7_node_breve.yml b/config/sync/migrate_plus.migration.d7_node_breve.yml index adf04ad..2df383d 100644 --- a/config/sync/migrate_plus.migration.d7_node_breve.yml +++ b/config/sync/migrate_plus.migration.d7_node_breve.yml @@ -1,4 +1,4 @@ -uuid: acabbdc5-4d4e-4a84-9259-5c6b0591335c +uuid: 4f4c3c56-5a5c-4447-9c62-12c0ba40a4c5 langcode: en status: true dependencies: { } diff --git a/config/sync/migrate_plus.migration.d7_node_breve_i18n.yml b/config/sync/migrate_plus.migration.d7_node_breve_i18n.yml index bf5f4cd..f368f5d 100644 --- a/config/sync/migrate_plus.migration.d7_node_breve_i18n.yml +++ b/config/sync/migrate_plus.migration.d7_node_breve_i18n.yml @@ -1,4 +1,4 @@ -uuid: 9ba9ed3c-0403-47f7-833c-32eb5901e3a0 +uuid: 6693dc65-c1b9-43a3-a05c-10432c299a57 langcode: en status: true dependencies: { } diff --git a/config/sync/migrate_plus.migration.d7_node_materiau.yml b/config/sync/migrate_plus.migration.d7_node_materiau.yml index ecfdea4..fbd5f9b 100644 --- a/config/sync/migrate_plus.migration.d7_node_materiau.yml +++ b/config/sync/migrate_plus.migration.d7_node_materiau.yml @@ -1,4 +1,4 @@ -uuid: 5d164ac2-4f6b-44cf-a0ac-29a6c42c2290 +uuid: 936116bb-6458-4ef2-9d4b-0d76667d0ae5 langcode: en status: true dependencies: { } diff --git a/config/sync/migrate_plus.migration.d7_node_materiau_i18n.yml b/config/sync/migrate_plus.migration.d7_node_materiau_i18n.yml index dce9e7d..596e4b3 100644 --- a/config/sync/migrate_plus.migration.d7_node_materiau_i18n.yml +++ b/config/sync/migrate_plus.migration.d7_node_materiau_i18n.yml @@ -1,4 +1,4 @@ -uuid: 3c1f0e83-eb0f-4eef-a98d-a5905d59f787 +uuid: fb746204-e216-4f5d-998c-2bf403e92c89 langcode: en status: true dependencies: { } diff --git a/config/sync/migrate_plus.migration.d7_taxonomy_term_company.yml b/config/sync/migrate_plus.migration.d7_taxonomy_term_company.yml index 48a576a..535a679 100644 --- a/config/sync/migrate_plus.migration.d7_taxonomy_term_company.yml +++ b/config/sync/migrate_plus.migration.d7_taxonomy_term_company.yml @@ -1,4 +1,4 @@ -uuid: c3fbebf7-4117-458d-ad90-2cfc235784b4 +uuid: 711288e2-260d-4dfe-ab50-cb0bc6c9029b langcode: en status: true dependencies: { } diff --git a/config/sync/migrate_plus.migration.d7_taxonomy_term_showroom.yml b/config/sync/migrate_plus.migration.d7_taxonomy_term_showroom.yml index 16ba55f..97e2db5 100644 --- a/config/sync/migrate_plus.migration.d7_taxonomy_term_showroom.yml +++ b/config/sync/migrate_plus.migration.d7_taxonomy_term_showroom.yml @@ -1,4 +1,4 @@ -uuid: 9e7ef86e-7eb8-45e7-901e-ad9bc412f210 +uuid: 0f95b7fd-3f3a-4137-ae2a-0bfe5ac407f4 langcode: en status: true dependencies: { } diff --git a/config/sync/migrate_plus.migration.d7_taxonomy_term_tags.yml b/config/sync/migrate_plus.migration.d7_taxonomy_term_tags.yml index 8903d43..bf013d5 100644 --- a/config/sync/migrate_plus.migration.d7_taxonomy_term_tags.yml +++ b/config/sync/migrate_plus.migration.d7_taxonomy_term_tags.yml @@ -1,4 +1,4 @@ -uuid: 8b2f1d14-85ec-4ac8-a03b-8beba280f2eb +uuid: 58ff2b07-74c0-464b-b6a2-1d7660be8b81 langcode: en status: true dependencies: { } diff --git a/config/sync/migrate_plus.migration.d7_taxonomy_term_tags_i18n.yml b/config/sync/migrate_plus.migration.d7_taxonomy_term_tags_i18n.yml index 0fc426f..9db6995 100644 --- a/config/sync/migrate_plus.migration.d7_taxonomy_term_tags_i18n.yml +++ b/config/sync/migrate_plus.migration.d7_taxonomy_term_tags_i18n.yml @@ -1,4 +1,4 @@ -uuid: 13c714e0-c267-4ea7-8c2a-5380cde65359 +uuid: a8eda226-85ac-43c5-8404-89030df4bb39 langcode: en status: true dependencies: { } diff --git a/config/sync/migrate_plus.migration.d7_taxonomy_term_thesaurus.yml b/config/sync/migrate_plus.migration.d7_taxonomy_term_thesaurus.yml index cd725ef..04984b7 100644 --- a/config/sync/migrate_plus.migration.d7_taxonomy_term_thesaurus.yml +++ b/config/sync/migrate_plus.migration.d7_taxonomy_term_thesaurus.yml @@ -1,4 +1,4 @@ -uuid: bc0c7ae3-5eda-4772-aa53-e25f139f5954 +uuid: cba6bfc1-723f-46bd-bd7a-ae837070c178 langcode: en status: true dependencies: { } diff --git a/config/sync/migrate_plus.migration.d7_taxonomy_term_thesaurus_i18n.yml b/config/sync/migrate_plus.migration.d7_taxonomy_term_thesaurus_i18n.yml index 2d1bbd1..c804878 100644 --- a/config/sync/migrate_plus.migration.d7_taxonomy_term_thesaurus_i18n.yml +++ b/config/sync/migrate_plus.migration.d7_taxonomy_term_thesaurus_i18n.yml @@ -1,4 +1,4 @@ -uuid: a80a2e78-18ed-4205-9fd4-2c3dfabf1be1 +uuid: 2ac73091-ce57-4218-a155-c23bdb72f618 langcode: en status: true dependencies: { } diff --git a/config/sync/migrate_plus.migration.d7_user_profile.yml b/config/sync/migrate_plus.migration.d7_user_profile.yml new file mode 100644 index 0000000..972dac1 --- /dev/null +++ b/config/sync/migrate_plus.migration.d7_user_profile.yml @@ -0,0 +1,69 @@ +uuid: c0ee4d63-d111-4488-9389-03efd1551668 +langcode: en +status: true +dependencies: + enforced: + module: + - migrate_plus + - migrate_tools + - profile +_core: + default_config_hash: yQMn6M_hGm1NmGAIYpol4n5NBMeUXQqvxMpTAF7cYPw +id: d7_user_profile +class: null +field_plugin_method: null +cck_plugin_method: null +migration_tags: + - 'Drupal 7' + - Content + - Materio +migration_group: d7_materio +label: 'D7 User Profiles' +source: + plugin: d7_user_profile + high_water_property: + name: changed + alias: p +process: + type: + plugin: static_map + source: type + map: + contact_operationnel: contact_company + adherent: member + uid: + plugin: migration_lookup + migration: d7_users + source: uid + field_activity_sector: field_activity_sector + field_employee: field_employee + field_first_name: field_first_name + field_name: field_name + field_naf: field_naf + field_organization: field_organization + field_phone: field_private_phone + field_position: field_private_quality + field_service: field_service + field_siret: field_siret + field_title: field_private_name_title + field_vat_number_intra_ce: field_vat_number_intra_ce + field_website: field_user_website + field_memo: field_memo + field_address: + plugin: iterator + source: field_adresse + process: + country_code: country + administrative_area: administrative_area + locality: locality + dependent_locality: dependent_locality + postal_code: postal_code + address_line1: thoroughfare + organization: organisation_name + given_name: first_name + family_name: last_name +destination: + plugin: 'entity:profile' +migration_dependencies: + required: + - d7_users diff --git a/config/sync/migrate_plus.migration.d7_users.yml b/config/sync/migrate_plus.migration.d7_users.yml index 38a1fa3..6704345 100644 --- a/config/sync/migrate_plus.migration.d7_users.yml +++ b/config/sync/migrate_plus.migration.d7_users.yml @@ -1,9 +1,9 @@ -uuid: 20b9553f-981f-483e-a997-10d932905026 +uuid: 2d5923ba-b450-458a-adf2-632e3f31d775 langcode: en status: true dependencies: { } _core: - default_config_hash: 3JaOIJug248HhFZJwv4iL-o3Na6-pzQKfvEzHZ4rPZw + default_config_hash: A9EdRJlr8o5qMY-JbJU_n7Cv0Java4lZouu__eONDWM id: d7_users class: Drupal\user\Plugin\migrate\User field_plugin_method: null @@ -11,6 +11,7 @@ cck_plugin_method: null migration_tags: - 'Drupal 7' - Content + - Materio migration_group: d7_materio label: 'User accounts' source: @@ -86,4 +87,6 @@ process: field_memo: field_memo destination: plugin: 'entity:user' -migration_dependencies: null +migration_dependencies: + required: + - d7_allpublicfiles diff --git a/config/sync/migrate_plus.migration_group.d7_materio.yml b/config/sync/migrate_plus.migration_group.d7_materio.yml index 9a2c9b8..a9d0c43 100644 --- a/config/sync/migrate_plus.migration_group.d7_materio.yml +++ b/config/sync/migrate_plus.migration_group.d7_materio.yml @@ -1,9 +1,11 @@ -uuid: f8a2f577-f066-4c45-b923-64b7a3029459 +uuid: 9b1e3bf9-a402-448f-89c8-e345d02f3b06 langcode: en status: true dependencies: enforced: module: + - migrate_plus + - migrate_tools - materio_migrate id: d7_materio label: 'D7 Materio' diff --git a/config/sync/profile.type.contact_company.yml b/config/sync/profile.type.contact_company.yml new file mode 100644 index 0000000..6816707 --- /dev/null +++ b/config/sync/profile.type.contact_company.yml @@ -0,0 +1,24 @@ +uuid: 2af6f5f9-510a-4a3f-89d1-ef8f2e94b09e +langcode: en +status: true +dependencies: { } +id: contact_company +label: 'Contact Company' +registration: false +multiple: true +roles: + contact_company: contact_company + unverified: '0' + authenticated: '0' + free_user: '0' + alpha_testeur: '0' + student: '0' + premium: '0' + adherent: '0' + translator: '0' + admin_showroom: '0' + admin: '0' + root: '0' +weight: 0 +use_revisions: false +description: '' diff --git a/config/sync/profile.type.member.yml b/config/sync/profile.type.member.yml new file mode 100644 index 0000000..4996aeb --- /dev/null +++ b/config/sync/profile.type.member.yml @@ -0,0 +1,24 @@ +uuid: ebb3e010-216b-4313-bb35-2f70ae37aeab +langcode: en +status: true +dependencies: { } +id: member +label: Member +registration: false +multiple: true +roles: + free_user: free_user + contact_company: contact_company + alpha_testeur: alpha_testeur + student: student + premium: premium + adherent: adherent + unverified: '0' + authenticated: '0' + translator: '0' + admin_showroom: '0' + admin: '0' + root: '0' +weight: 0 +use_revisions: false +description: '' diff --git a/config/sync/system.action.profile_delete_action.yml b/config/sync/system.action.profile_delete_action.yml new file mode 100644 index 0000000..28b166b --- /dev/null +++ b/config/sync/system.action.profile_delete_action.yml @@ -0,0 +1,13 @@ +uuid: 4c2a0982-c6aa-4c24-a8a5-d5b6504171c8 +langcode: en +status: true +dependencies: + module: + - profile +_core: + default_config_hash: 7iaCHiR7rJnpuIcqcYxtZ6OFm7HnFfjZJdE1s-8K4RM +id: profile_delete_action +label: 'Delete selected profile' +type: profile +plugin: profile_delete_action +configuration: { } diff --git a/config/sync/system.action.profile_publish_action.yml b/config/sync/system.action.profile_publish_action.yml new file mode 100644 index 0000000..c347a52 --- /dev/null +++ b/config/sync/system.action.profile_publish_action.yml @@ -0,0 +1,13 @@ +uuid: 9714cb29-4acb-474e-878c-62431e2b485b +langcode: en +status: true +dependencies: + module: + - profile +_core: + default_config_hash: dz5_l09fj1m6b4MZVYlHjYHsXSlG9aQHGGoupPb8phg +id: profile_publish_action +label: 'Publish selected profile' +type: profile +plugin: profile_publish_action +configuration: { } diff --git a/config/sync/system.action.profile_unpublish_action.yml b/config/sync/system.action.profile_unpublish_action.yml new file mode 100644 index 0000000..24c90fb --- /dev/null +++ b/config/sync/system.action.profile_unpublish_action.yml @@ -0,0 +1,13 @@ +uuid: 5f114e10-08ab-4185-907b-2d3c8caf2847 +langcode: en +status: true +dependencies: + module: + - profile +_core: + default_config_hash: QWiXic0BIuoYYgvkiSTxsCsPPi7k1mYuHOTIAPhoT4Q +id: profile_unpublish_action +label: 'Unpublish selected profile' +type: profile +plugin: profile_unpublish_action +configuration: { } diff --git a/config/sync/user.role.adherent.yml b/config/sync/user.role.adherent.yml index da78c85..4903629 100644 --- a/config/sync/user.role.adherent.yml +++ b/config/sync/user.role.adherent.yml @@ -6,4 +6,7 @@ id: adherent label: Adhérent weight: -2 is_admin: null -permissions: { } +permissions: + - 'create member profile' + - 'update own member profile' + - 'view own member profile' diff --git a/config/sync/user.role.admin.yml b/config/sync/user.role.admin.yml index a369f1f..b8c0f6f 100644 --- a/config/sync/user.role.admin.yml +++ b/config/sync/user.role.admin.yml @@ -6,7 +6,7 @@ _core: default_config_hash: oPv8PkAuHYeKKe1c48A3-O9VsF3Nl1XBsMKrgqxo8vs id: admin label: Admin -weight: -7 +weight: 1 is_admin: null permissions: - 'access administration pages' @@ -14,6 +14,7 @@ permissions: - 'access any generique workflow_transion overview' - 'access content overview' - 'access files overview' + - 'access profile overview' - 'access site in maintenance mode' - 'access synonyms entity autocomplete' - 'access toolbar' @@ -114,11 +115,14 @@ permissions: - 'translate thesaurus taxonomy_term' - 'update content translations' - 'use text format wysiwyg' + - 'view any contact_company profile' + - 'view any member profile' - 'view autre_son revisions' - 'view breve revisions' - 'view enregistrement revisions' - 'view evenement revisions' - 'view materiau revisions' - 'view page revisions' + - 'view profile' - 'view static revisions' - 'view the administration theme' diff --git a/config/sync/user.role.admin_showroom.yml b/config/sync/user.role.admin_showroom.yml index 1b353ee..072e18c 100644 --- a/config/sync/user.role.admin_showroom.yml +++ b/config/sync/user.role.admin_showroom.yml @@ -4,6 +4,6 @@ status: true dependencies: { } id: admin_showroom label: 'Admin Showroom' -weight: 5 +weight: 0 is_admin: null permissions: { } diff --git a/config/sync/user.role.alpha_testeur.yml b/config/sync/user.role.alpha_testeur.yml index 9c6670f..95133c9 100644 --- a/config/sync/user.role.alpha_testeur.yml +++ b/config/sync/user.role.alpha_testeur.yml @@ -4,6 +4,9 @@ status: true dependencies: { } id: alpha_testeur label: 'Alpha Testeur' -weight: 3 +weight: -5 is_admin: null -permissions: { } +permissions: + - 'create member profile' + - 'update own member profile' + - 'view own member profile' diff --git a/config/sync/user.role.anonymous.yml b/config/sync/user.role.anonymous.yml index 462cf55..bce2563 100644 --- a/config/sync/user.role.anonymous.yml +++ b/config/sync/user.role.anonymous.yml @@ -6,7 +6,7 @@ _core: default_config_hash: g0EHI5W4j_ZUCTvSQWEDEKVvC0g1Glt4YWZt_ihyvog id: anonymous label: 'Anonymous user' -weight: -10 +weight: -9 is_admin: false permissions: - 'access content' diff --git a/config/sync/user.role.authenticated.yml b/config/sync/user.role.authenticated.yml index 87f83ff..28327ba 100644 --- a/config/sync/user.role.authenticated.yml +++ b/config/sync/user.role.authenticated.yml @@ -6,7 +6,7 @@ _core: default_config_hash: NlAJ1uthbRfNcM-M7UCYixmpTNgZnkuQKQymrXPv7UY id: authenticated label: 'Authenticated user' -weight: -9 +weight: -8 is_admin: false permissions: - 'access content' @@ -32,6 +32,7 @@ permissions: - 'view own unpublished chutier entities' - 'view own unpublished composition entities' - 'view own unpublished fil entities' + - 'view profile' - 'view published composition entities' - 'view published fil entities' - 'view search api pages' diff --git a/config/sync/user.role.contact_company.yml b/config/sync/user.role.contact_company.yml index 9e56b8b..7e931d2 100644 --- a/config/sync/user.role.contact_company.yml +++ b/config/sync/user.role.contact_company.yml @@ -4,6 +4,11 @@ status: true dependencies: { } id: contact_company label: 'Contact Company' -weight: -3 +weight: -6 is_admin: null -permissions: { } +permissions: + - 'create member profile' + - 'update own contact_company profile' + - 'update own member profile' + - 'view own contact_company profile' + - 'view own member profile' diff --git a/config/sync/user.role.free_user.yml b/config/sync/user.role.free_user.yml index 419bb2e..82049af 100644 --- a/config/sync/user.role.free_user.yml +++ b/config/sync/user.role.free_user.yml @@ -4,6 +4,9 @@ status: true dependencies: { } id: free_user label: 'Free User' -weight: -1 +weight: -7 is_admin: null -permissions: { } +permissions: + - 'create member profile' + - 'update own member profile' + - 'view own member profile' diff --git a/config/sync/user.role.premium.yml b/config/sync/user.role.premium.yml index bd1f4e7..e21e06a 100644 --- a/config/sync/user.role.premium.yml +++ b/config/sync/user.role.premium.yml @@ -4,6 +4,9 @@ status: true dependencies: { } id: premium label: Premium -weight: 0 +weight: -3 is_admin: null -permissions: { } +permissions: + - 'create member profile' + - 'update own member profile' + - 'view own member profile' diff --git a/config/sync/user.role.root.yml b/config/sync/user.role.root.yml index fb5d4c9..0216907 100644 --- a/config/sync/user.role.root.yml +++ b/config/sync/user.role.root.yml @@ -6,7 +6,7 @@ _core: default_config_hash: TBu83Sl_ckotQqV22pDBGe0jLnR1nLyiVeVVnYJX_kQ id: root label: Root -weight: -6 +weight: 2 is_admin: true permissions: - 'access administration pages' diff --git a/config/sync/user.role.student.yml b/config/sync/user.role.student.yml index ca2bcb1..6dd628b 100644 --- a/config/sync/user.role.student.yml +++ b/config/sync/user.role.student.yml @@ -4,6 +4,9 @@ status: true dependencies: { } id: student label: Student -weight: 2 +weight: -4 is_admin: null -permissions: { } +permissions: + - 'create member profile' + - 'update own member profile' + - 'view own member profile' diff --git a/config/sync/user.role.translator.yml b/config/sync/user.role.translator.yml index ca7b118..027a0f0 100644 --- a/config/sync/user.role.translator.yml +++ b/config/sync/user.role.translator.yml @@ -4,6 +4,6 @@ status: true dependencies: { } id: translator label: Translator -weight: 4 +weight: -1 is_admin: null permissions: { } diff --git a/config/sync/user.role.unverified.yml b/config/sync/user.role.unverified.yml index 806b4b3..f2ef8df 100644 --- a/config/sync/user.role.unverified.yml +++ b/config/sync/user.role.unverified.yml @@ -4,6 +4,6 @@ status: true dependencies: { } id: unverified label: Unverified -weight: 1 +weight: -10 is_admin: null permissions: { } diff --git a/config/sync/views.view.admin_users.yml b/config/sync/views.view.admin_users.yml index 876871d..c134179 100644 --- a/config/sync/views.view.admin_users.yml +++ b/config/sync/views.view.admin_users.yml @@ -3,6 +3,9 @@ langcode: en status: true dependencies: config: + - core.entity_view_mode.profile.admin_view + - field.storage.profile.field_first_name + - field.storage.profile.field_name - field.storage.user.field_company - field.storage.user.field_memo - field.storage.user.field_showroom @@ -12,6 +15,7 @@ dependencies: - user.role.root module: - pagerer + - profile - taxonomy - user - views_bulk_operations @@ -85,16 +89,25 @@ display: summary: '' description: '' columns: + views_bulk_operations_bulk_form: views_bulk_operations_bulk_form name: name - mail: name - operations: name + field_first_name: field_first_name + field_name: field_name + mail: field_name + operations: field_name roles_target_id: roles_target_id field_company: field_company field_showroom: field_showroom access: access created: created field_memo: field_memo + rendered_entity: rendered_entity info: + views_bulk_operations_bulk_form: + align: '' + separator: '' + empty_column: false + responsive: '' name: sortable: false default_sort_order: asc @@ -102,11 +115,25 @@ display: separator: '
' empty_column: false responsive: '' + field_first_name: + sortable: false + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + field_name: + sortable: false + default_sort_order: asc + align: '' + separator: '
' + empty_column: false + responsive: '' mail: sortable: false default_sort_order: asc align: '' - separator: '' + separator: '
' empty_column: false responsive: '' operations: @@ -154,6 +181,13 @@ display: separator: '' empty_column: false responsive: '' + rendered_entity: + sortable: false + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' default: '-1' empty_table: false row: @@ -242,25 +276,38 @@ display: id: name table: users_field_data field: name - entity_type: user - entity_field: name - alter: - alter_text: false - make_link: false - absolute: false - trim: false - word_boundary: false - ellipsis: false - strip_tags: false - html: false - hide_empty: false - empty_zero: false - plugin_id: field relationship: none group_type: group admin_label: '' label: Name - exclude: false + exclude: true + 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: false + ellipsis: false + 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: '' @@ -270,10 +317,13 @@ display: element_wrapper_class: '' element_default_classes: true empty: '' + hide_empty: false + empty_zero: false hide_alter_empty: true click_sort_column: value type: user_name - settings: { } + settings: + link_to_entity: true group_column: value group_columns: { } group_rows: true @@ -284,6 +334,135 @@ display: multi_type: separator separator: ', ' field_api_classes: false + entity_type: user + entity_field: name + plugin_id: field + field_first_name: + id: field_first_name + table: profile__field_first_name + field: field_first_name + relationship: profile + group_type: group + admin_label: '' + label: 'First Name' + exclude: true + 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: string + settings: + link_to_entity: false + 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 + plugin_id: field + field_name: + id: field_name + table: profile__field_name + field: field_name + relationship: profile + group_type: group + admin_label: '' + label: Name + exclude: false + alter: + alter_text: true + text: '{{ field_first_name }} {{ field_name }}' + 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: string + settings: + link_to_entity: false + 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 + plugin_id: field mail: id: mail table: users_field_data @@ -774,6 +953,57 @@ display: separator: ', ' field_api_classes: false plugin_id: field + rendered_entity: + id: rendered_entity + table: profile + field: rendered_entity + relationship: profile + group_type: group + admin_label: '' + label: 'Rendered entity' + 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: 'no profile' + hide_empty: false + empty_zero: true + hide_alter_empty: true + view_mode: admin_view + entity_type: profile + plugin_id: rendered_entity filters: status: id: status @@ -1144,6 +1374,57 @@ display: default_group_multiple: { } group_items: { } plugin_id: string + type: + id: type + table: profile + field: type + relationship: profile + group_type: group + admin_label: '' + operator: in + value: { } + group: 1 + exposed: true + expose: + operator_id: type_op + label: 'Profile type' + description: '' + use_operator: false + operator: type_op + identifier: type + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + unverified: '0' + anonymous: '0' + free_user: '0' + contact_company: '0' + alpha_testeur: '0' + student: '0' + premium: '0' + adherent: '0' + translator: '0' + admin_showroom: '0' + admin: '0' + root: '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: { } + entity_type: profile + entity_field: type + plugin_id: bundle sorts: created: id: created @@ -1174,7 +1455,17 @@ display: plugin_id: result footer: { } empty: { } - relationships: { } + relationships: + profile: + id: profile + table: users_field_data + field: profile + relationship: none + group_type: group + admin_label: Profile + required: false + entity_type: user + plugin_id: standard arguments: { } display_extenders: views_ef_fieldset: { } @@ -1192,6 +1483,11 @@ display: - user - user.roles tags: + - 'config:core.entity_view_display.profile.contact_company.default' + - 'config:core.entity_view_display.profile.member.admin_view' + - 'config:core.entity_view_display.profile.member.default' + - 'config:field.storage.profile.field_first_name' + - 'config:field.storage.profile.field_name' - 'config:field.storage.user.field_company' - 'config:field.storage.user.field_memo' - 'config:field.storage.user.field_showroom' @@ -1223,6 +1519,11 @@ display: - user - user.roles tags: + - 'config:core.entity_view_display.profile.contact_company.default' + - 'config:core.entity_view_display.profile.member.admin_view' + - 'config:core.entity_view_display.profile.member.default' + - 'config:field.storage.profile.field_first_name' + - 'config:field.storage.profile.field_name' - 'config:field.storage.user.field_company' - 'config:field.storage.user.field_memo' - 'config:field.storage.user.field_showroom' diff --git a/config/sync/views.view.profiles.yml b/config/sync/views.view.profiles.yml new file mode 100644 index 0000000..1875b28 --- /dev/null +++ b/config/sync/views.view.profiles.yml @@ -0,0 +1,384 @@ +uuid: e83eaea3-cdcf-47db-b340-00e008d7481c +langcode: en +status: true +dependencies: + module: + - profile +_core: + default_config_hash: YD0hw-cg1_R36IQ1hO2vQlrhYAQqM7kF6mw3hFGrwI8 +id: profiles +label: Profiles +module: views +description: '' +tag: '' +base_table: profile +base_field: profile_id +core: 8.x +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: none + options: { } + cache: + type: tag + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: '' + query_tags: { } + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: none + options: + offset: 0 + style: + type: grid + options: + grouping: { } + columns: 4 + automatic_width: true + alignment: horizontal + col_class_default: true + col_class_custom: '' + row_class_default: true + row_class_custom: '' + row: + type: fields + options: + inline: { } + separator: '' + hide_empty: false + default_field_elements: true + fields: + rendered_entity: + id: rendered_entity + table: profile + field: rendered_entity + relationship: none + group_type: group + admin_label: '' + label: '' + 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: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + view_mode: default + entity_type: profile + plugin_id: rendered_entity + operations: + id: operations + table: profile + field: operations + relationship: none + group_type: group + admin_label: '' + label: '' + 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: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + destination: true + entity_type: profile + plugin_id: entity_operations + filters: { } + sorts: { } + header: { } + footer: { } + empty: { } + relationships: { } + arguments: + uid: + id: uid + table: profile + field: uid + relationship: none + group_type: group + admin_label: '' + default_action: default + exception: + value: all + title_enable: false + title: All + title_enable: false + title: '' + default_argument_type: user + default_argument_options: + user: false + default_argument_skip_url: false + summary_options: + base_path: '' + count: true + items_per_page: 25 + override: false + summary: + sort_order: asc + number_of_records: 0 + format: default_summary + specify_validation: false + validate: + type: none + fail: 'not found' + validate_options: { } + break_phrase: false + not: false + entity_type: profile + entity_field: uid + plugin_id: numeric + type: + id: type + table: profile + field: type + relationship: none + group_type: group + admin_label: '' + default_action: ignore + exception: + value: all + title_enable: false + title: All + title_enable: false + title: '' + default_argument_type: fixed + default_argument_options: + argument: '' + default_argument_skip_url: false + summary_options: + base_path: '' + count: true + items_per_page: 25 + override: false + summary: + sort_order: asc + number_of_records: 0 + format: default_summary + specify_validation: true + validate: + type: 'entity:profile_type' + fail: 'not found' + validate_options: { } + glossary: false + limit: 0 + case: none + path_case: none + transform_dash: false + break_phrase: false + entity_type: profile + entity_field: type + plugin_id: string + status: + id: status + table: profile + field: status + relationship: none + group_type: group + admin_label: '' + default_action: ignore + exception: + value: all + title_enable: false + title: All + title_enable: false + title: '' + default_argument_type: fixed + default_argument_options: + argument: '' + default_argument_skip_url: false + summary_options: + base_path: '' + count: true + items_per_page: 25 + override: false + summary: + sort_order: asc + number_of_records: 0 + format: default_summary + specify_validation: false + validate: + type: none + fail: 'not found' + validate_options: { } + break_phrase: false + not: false + entity_type: profile + entity_field: status + plugin_id: numeric + display_extenders: { } + title: Profiles + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_interface' + - url + tags: { } + profile_type_listing: + display_plugin: embed + id: profile_type_listing + display_title: 'Profile type listing' + position: 1 + display_options: + display_extenders: { } + display_description: '' + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_interface' + - url + tags: { } + user_view: + display_plugin: embed + id: user_view + display_title: 'User view' + position: 2 + display_options: + display_extenders: { } + fields: + rendered_entity: + id: rendered_entity + table: profile + field: rendered_entity + relationship: none + group_type: group + admin_label: '' + label: '' + 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: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + view_mode: default + entity_type: profile + plugin_id: rendered_entity + defaults: + fields: false + display_description: '' + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_interface' + - url + tags: { } diff --git a/migrate-from-d7.sh b/migrate-from-d7.sh index f4d6324..f904e03 100755 --- a/migrate-from-d7.sh +++ b/migrate-from-d7.sh @@ -14,6 +14,7 @@ drush mim d7_allpublicfiles --feedback="1000" echo " " echo "Migrating Users" drush mim d7_users --update --feedback="1000" +# drush mim d7_user_profiles --feedback="1000" echo " " echo "Migrating Taxonomy" diff --git a/web/modules/custom/materio_migrate/config/install/migrate_plus.migration.d7_allpublicfiles.yml b/web/modules/custom/materio_migrate/config/install/migrate_plus.migration.d7_allpublicfiles.yml index cc28f68..4cf8dd1 100644 --- a/web/modules/custom/materio_migrate/config/install/migrate_plus.migration.d7_allpublicfiles.yml +++ b/web/modules/custom/materio_migrate/config/install/migrate_plus.migration.d7_allpublicfiles.yml @@ -7,6 +7,9 @@ audit: true migration_tags: - Drupal 7 - Content + - Materio + - Files + source: plugin: d7_pubic_file scheme: public diff --git a/web/modules/custom/materio_migrate/config/install/migrate_plus.migration.d7_taxonomy_term_showroom.yml b/web/modules/custom/materio_migrate/config/install/migrate_plus.migration.d7_taxonomy_term_showroom.yml index 5f06e50..e968f90 100644 --- a/web/modules/custom/materio_migrate/config/install/migrate_plus.migration.d7_taxonomy_term_showroom.yml +++ b/web/modules/custom/materio_migrate/config/install/migrate_plus.migration.d7_taxonomy_term_showroom.yml @@ -53,6 +53,10 @@ process: source: field_public_email process: value: email + + # field_address: + # plugin: addressfield + # source: field_address field_public_address: plugin: iterator source: field_public_address diff --git a/web/modules/custom/materio_migrate/config/install/migrate_plus.migration.d7_user_profile.yml b/web/modules/custom/materio_migrate/config/install/migrate_plus.migration.d7_user_profile.yml new file mode 100644 index 0000000..296d9e9 --- /dev/null +++ b/web/modules/custom/materio_migrate/config/install/migrate_plus.migration.d7_user_profile.yml @@ -0,0 +1,99 @@ +id: d7_user_profile +label: D7 User Profiles +migration_group: d7_materio +audit: true +migration_tags: + - Drupal 7 + - Content + - Materio + +source: + plugin: d7_user_profile + high_water_property: + name: changed + alias: p + +destination: + plugin: entity:profile + +process: + # id: pid + # label: label + + type: + plugin: static_map + source: type + map: + contact_operationnel: contact_company + adherent: member + + uid: + plugin: migration_lookup + migration: d7_users + source: uid + + field_activity_sector: field_activity_sector + field_employee: field_employee + field_first_name: field_first_name + field_name: field_name + field_naf: field_naf + field_organization: field_organization + field_phone: field_private_phone + field_position: field_private_quality + field_service: field_service + field_siret: field_siret + field_title: field_private_name_title + field_vat_number_intra_ce: field_vat_number_intra_ce + field_website: field_user_website + field_memo: field_memo + + # field_email: + # plugin: merge + # source: + # - field_administrative_email + # - field_private_email + + # field_name: + # plugin: merge + # source: + # - field_name + # - field_private_name + + # field_address: + # plugin: addressfield + # source: field_addresse + field_address: + plugin: iterator + source: field_adresse + process: + # langcode: + country_code: country + administrative_area: administrative_area + locality: locality + dependent_locality: dependent_locality + postal_code: postal_code + # sorting_code: + address_line1: thoroughfare + # address_line2: + organization: organisation_name + given_name: first_name + # additional_name: + family_name: last_name + + # SOURCES + # sub_administrative_area + # premise + # sub_premise + # name_line + # data + +migration_dependencies: + required: + - d7_users + +dependencies: + enforced: + module: + - migrate_plus + - migrate_tools + - profile diff --git a/web/modules/custom/materio_migrate/config/install/migrate_plus.migration.d7_users.yml b/web/modules/custom/materio_migrate/config/install/migrate_plus.migration.d7_users.yml index 8e4d620..70ba4c8 100644 --- a/web/modules/custom/materio_migrate/config/install/migrate_plus.migration.d7_users.yml +++ b/web/modules/custom/materio_migrate/config/install/migrate_plus.migration.d7_users.yml @@ -5,6 +5,7 @@ audit: true migration_tags: - Drupal 7 - Content + - Materio class: Drupal\user\Plugin\migrate\User source: diff --git a/web/modules/custom/materio_migrate/config/install/migrate_plus.migration_group.d7_materio.yml b/web/modules/custom/materio_migrate/config/install/migrate_plus.migration_group.d7_materio.yml index c0b50ce..0973429 100644 --- a/web/modules/custom/materio_migrate/config/install/migrate_plus.migration_group.d7_materio.yml +++ b/web/modules/custom/materio_migrate/config/install/migrate_plus.migration_group.d7_materio.yml @@ -8,4 +8,6 @@ shared_configuration: dependencies: enforced: module: + - migrate_plus + - migrate_tools - materio_migrate diff --git a/web/modules/custom/materio_migrate/src/Plugin/migrate/source/D7UserProfile.php b/web/modules/custom/materio_migrate/src/Plugin/migrate/source/D7UserProfile.php new file mode 100644 index 0000000..076570c --- /dev/null +++ b/web/modules/custom/materio_migrate/src/Plugin/migrate/source/D7UserProfile.php @@ -0,0 +1,168 @@ +moduleHandler = $module_handler; + $this->phoneUtils = PhoneNumberUtil::getInstance(); + $this->countryManager = $country_manager; + } + + /** + * {@inheritdoc} + */ + public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration = NULL) { + return new static( + $configuration, + $plugin_id, + $plugin_definition, + $migration, + $container->get('state'), + $container->get('entity.manager'), + $container->get('module_handler'), + $container->get('country_manager') + ); + } + + /** + * {@inheritdoc} + */ + public function query() { + // Select node in its last revision. + $query = $this->select('profile', 'p') + ->fields('p', [ + 'pid', + 'type', + 'uid', + 'label', + 'created', + 'changed', + ]) + ->orderBy('changed'); + + return $query; + } + + /** + * {@inheritdoc} + */ + public function prepareRow(Row $row) { + $pid = $row->getSourceProperty('pid'); + $uid = $row->getSourceProperty('uid'); + $type = $row->getSourceProperty('type'); + // drush_print('-- '.$pid."\t".$uid."\t".$type); + + // Get Field API field values. + foreach ($this->getFields('profile2', $type) as $field_name => $field) { + $row->setSourceProperty($field_name, $this->getFieldValues('profile2', $field_name, $pid)); + } + + // make sure that field_website url is absolute + $field_website = $row->getSourceProperty('field_user_website'); + if(isset($field_website[0]['url'])){ + $url = $field_website[0]['url']; + if(!strpos($url, 'http://')){ + $field_website[0]['url'] = 'http://'.$url; + $row->setSourceProperty('field_user_website', $field_website); + } + } + + // convert phone field with libphonenumber + $field_phone = $row->getSourceProperty('field_private_phone'); + if(isset($field_phone[0]['number']) && !empty($field_phone[0]['number'])){ + $national_number = $field_phone[0]['number']; + $region = strtoupper($field_phone[0]['country_codes']); + // isValidRegionCode($regionCode) + if($this->phoneUtils->isPossibleNumber($national_number, $region)){ + $number = $this->phoneUtils->parse($national_number, $region); + $row->setSourceProperty('field_private_phone', $this->phoneUtils->format($number, PhoneNumberFormat::E164)); + }else{ + // add bad phone number to memo field + $memo .= "#migration : invalid phone number: ".$national_number.' region: '.$region."\n"; + drush_print('WARNING: phone number invalide; number: '.$national_number.' region: '.$region); + } + } + + // record migration errors in field_memo + if(isset($memo)){ + $field_memo = $row->getSourceProperty('field_memo'); + $field_memo[0]['value'] .= "\n".$memo; + $row->setSourceProperty('field_memo', $field_memo); + } + + return parent::prepareRow($row); + } + + /** + * {@inheritdoc} + */ + public function fields() { + $fields = [ + 'pid' => $this->t('Profile ID'), + 'type' => $this->t('Type'), + 'uid' => $this->t('Title'), + 'label' => $this->t('Label'), + 'created' => $this->t('Created timestamp'), + 'changed' => $this->t('Modified timestamp'), + ]; + return $fields; + } + + /** + * {@inheritdoc} + */ + public function getIds() { + $ids['pid']['type'] = 'integer'; + $ids['pid']['alias'] = 'p'; + return $ids; + } + +}