Commit e6eca8fd authored by Reena Raghavan's avatar Reena Raghavan

Taxonomy and Users

parent 4049eef2
......@@ -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": "9603b133763e4ef7b895ef73ec868be7",
"content-hash": "f915fc2404f78a22a5876e043cd3c20e",
"packages": [
{
"name": "asm89/stack-cors",
......@@ -2302,6 +2302,88 @@
"source": "https://git.drupalcode.org/project/token"
}
},
{
"name": "drupal/viewsreference",
"version": "1.8.0",
"source": {
"type": "git",
"url": "https://git.drupalcode.org/project/viewsreference.git",
"reference": "8.x-1.8"
},
"dist": {
"type": "zip",
"url": "https://ftp.drupal.org/files/projects/viewsreference-8.x-1.8.zip",
"reference": "8.x-1.8",
"shasum": "8dd6b3828d40f4da413f73f956da528941e2ef52"
},
"require": {
"drupal/core": "^8.6|^9.0",
"php": "^7.0|^8.0",
"squizlabs/php_codesniffer": "*"
},
"conflict": {
"drupal/viewsreferennce": "*"
},
"require-dev": {
"composer/installers": "^1.2",
"drupal/coder": "^8.2",
"drupal/core-composer-scaffold": "*",
"webflo/drupal-core-require-dev": "~8.5"
},
"type": "drupal-module",
"extra": {
"drupal": {
"version": "8.x-1.8",
"datestamp": "1652694596",
"security-coverage": {
"status": "covered",
"message": "Covered by Drupal's security advisory policy"
}
},
"installer-paths": {
"../build/core": [
"type:drupal-core"
],
"../build/modules/contrib/{$name}": [
"type:drupal-module"
],
"../build/themes/contrib/{$name}": [
"type:drupal-theme"
]
}
},
"notification-url": "https://packages.drupal.org/8/downloads",
"license": [
"GPL-2.0+"
],
"authors": [
{
"name": "jasonawant",
"homepage": "https://www.drupal.org/user/589890"
},
{
"name": "joekers",
"homepage": "https://www.drupal.org/user/2229066"
},
{
"name": "kent@passingphase.nz",
"homepage": "https://www.drupal.org/user/93571"
},
{
"name": "seanB",
"homepage": "https://www.drupal.org/user/545912"
}
],
"description": "Views Reference",
"homepage": "http://drupal.org/project/viewsreference",
"keywords": [
"Drupal"
],
"support": {
"source": "http://cgit.drupalcode.org/viewsreference",
"issues": "http://drupal.org/project/issues/viewsreference"
}
},
{
"name": "drupal/webform",
"version": "6.1.3",
......@@ -4436,6 +4518,62 @@
},
"time": "2019-03-08T08:55:37+00:00"
},
{
"name": "squizlabs/php_codesniffer",
"version": "3.7.1",
"source": {
"type": "git",
"url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
"reference": "1359e176e9307e906dc3d890bcc9603ff6d90619"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/1359e176e9307e906dc3d890bcc9603ff6d90619",
"reference": "1359e176e9307e906dc3d890bcc9603ff6d90619",
"shasum": ""
},
"require": {
"ext-simplexml": "*",
"ext-tokenizer": "*",
"ext-xmlwriter": "*",
"php": ">=5.4.0"
},
"require-dev": {
"phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0"
},
"bin": [
"bin/phpcs",
"bin/phpcbf"
],
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "3.x-dev"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3-Clause"
],
"authors": [
{
"name": "Greg Sherwood",
"role": "lead"
}
],
"description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.",
"homepage": "https://github.com/squizlabs/PHP_CodeSniffer",
"keywords": [
"phpcs",
"standards"
],
"support": {
"issues": "https://github.com/squizlabs/PHP_CodeSniffer/issues",
"source": "https://github.com/squizlabs/PHP_CodeSniffer",
"wiki": "https://github.com/squizlabs/PHP_CodeSniffer/wiki"
},
"time": "2022-06-18T07:21:10+00:00"
},
{
"name": "stack/builder",
"version": "v1.0.6",
......@@ -10896,62 +11034,6 @@
],
"time": "2022-10-22T15:42:49+00:00"
},
{
"name": "squizlabs/php_codesniffer",
"version": "3.7.1",
"source": {
"type": "git",
"url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
"reference": "1359e176e9307e906dc3d890bcc9603ff6d90619"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/1359e176e9307e906dc3d890bcc9603ff6d90619",
"reference": "1359e176e9307e906dc3d890bcc9603ff6d90619",
"shasum": ""
},
"require": {
"ext-simplexml": "*",
"ext-tokenizer": "*",
"ext-xmlwriter": "*",
"php": ">=5.4.0"
},
"require-dev": {
"phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0"
},
"bin": [
"bin/phpcs",
"bin/phpcbf"
],
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "3.x-dev"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3-Clause"
],
"authors": [
{
"name": "Greg Sherwood",
"role": "lead"
}
],
"description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.",
"homepage": "https://github.com/squizlabs/PHP_CodeSniffer",
"keywords": [
"phpcs",
"standards"
],
"support": {
"issues": "https://github.com/squizlabs/PHP_CodeSniffer/issues",
"source": "https://github.com/squizlabs/PHP_CodeSniffer",
"wiki": "https://github.com/squizlabs/PHP_CodeSniffer/wiki"
},
"time": "2022-06-18T07:21:10+00:00"
},
{
"name": "symfony/browser-kit",
"version": "v4.4.44",
......
......@@ -6,7 +6,7 @@ migration_group: my_custom_migrate
source:
plugin: csv
path: public://import-sources/portfolio.csv
path: public://import-sources/portfolio_csv.csv
ids:
[nid]
delimiter: ','
......@@ -16,36 +16,63 @@ source:
- nid
process:
langcode: langcode
# langcode: langcode
type: type
status: status
uid: uid
title: title
created: created
changed: changed
default_langcode: default_langcode
metatag: metatag
path: path
menu_link: menu_link
# created: created
# changed: changed
# default_langcode: default_langcode
# metatag: metatag
# path: path
# menu_link: menu_link
content_translation_source: content_translation_source
content_translation_outdated: content_translation_outdated
field_aply_type: field_aply_type
field_author_simple: field_author_simple
field_background_foto: field_background_foto
field_apply_type:
-
plugin: skip_on_empty
method: row
source: field_apply_type
message: 'Field field_apply_type is missing'
# field_author_simple: field_author_simple
# field_background_foto: field_background_foto
field_broadcast_article_ref: field_broadcast_article_ref
field_content: field_content
field_country: field_country
field_co_founders_simple: field_co_founders_simple
# field_content: field_content
field_country:
-
plugin: skip_on_empty
method: row
source: field_country
message: 'Field field_country is missing'
# field_co_founders_simple: field_co_founders_simple
field_founding_amount: field_founding_amount
field_founding_status: field_founding_status
field_founding_status:
-
plugin: skip_on_empty
method: row
source: field_founding_status
message: 'Field field_founding_status is missing'
field_founding_year: field_founding_year
field_github_legend: field_github_legend
field_github_url: field_github_url
field_graduated: field_graduated
field_localization: field_localization
field_organization: field_organization
field_theme: field_theme
field_organization:
-
plugin: skip_on_empty
method: row
source: field_organization
message: 'Field field_organization is missing'
field_theme:
-
plugin: skip_on_empty
method: row
source: field_theme
message: 'Field field_theme is missing'
field_thumbnail: field_thumbnail
destination:
plugin: entity:node
overwrite_properties:
- title
\ No newline at end of file
id: taxonomy_term_apply_type_csv_import
label: Import Taxonomy Term
migration_tags:
- CSV
migration_group: my_custom_migrate
source:
plugin: csv
path: public://import-sources/apply_type.csv
ids:
[tid]
delimiter: ','
enclosure: '"'
header_row_count: 2
keys:
- tid
process:
tid: tid
name: name
destination:
plugin: entity:taxonomy_term
default_bundle: apply_type
\ No newline at end of file
id: taxonomy_term_broadcast_types_csv_import
label: Import Taxonomy Term
migration_tags:
- CSV
migration_group: my_custom_migrate
source:
plugin: csv
path: public://import-sources/broadcast_types.csv
ids:
[tid]
delimiter: ','
enclosure: '"'
header_row_count: 2
keys:
- tid
process:
tid: tid
name: name
destination:
plugin: entity:taxonomy_term
default_bundle: broadcast_types
\ No newline at end of file
id: taxonomy_term_countries_csv_import
label: Import Taxonomy Term
migration_tags:
- CSV
migration_group: my_custom_migrate
source:
plugin: csv
path: public://import-sources/countries.csv
ids:
[tid]
delimiter: ','
enclosure: '"'
header_row_count: 2
keys:
- tid
process:
tid: tid
name: name
destination:
plugin: entity:taxonomy_term
default_bundle: countries
\ No newline at end of file
id: taxonomy_term_founding_status_csv_import
label: Import Taxonomy Term
migration_tags:
- CSV
migration_group: my_custom_migrate
source:
plugin: csv
path: public://import-sources/founding_status.csv
ids:
[tid]
delimiter: ','
enclosure: '"'
header_row_count: 2
keys:
- tid
process:
tid: tid
name: name
destination:
plugin: entity:taxonomy_term
default_bundle: founding_status
\ No newline at end of file
id: taxonomy_term_media_csv_import
label: Import Taxonomy Term
migration_tags:
- CSV
migration_group: my_custom_migrate
source:
plugin: csv
path: public://import-sources/media.csv
ids:
[tid]
delimiter: ','
enclosure: '"'
header_row_count: 2
keys:
- tid
process:
tid: tid
name: name
destination:
plugin: entity:taxonomy_term
default_bundle: media
\ No newline at end of file
id: taxonomy_term_organizations_csv_import
label: Import Taxonomy Term
migration_tags:
- CSV
migration_group: my_custom_migrate
source:
plugin: csv
path: public://import-sources/organizations.csv
ids:
[tid]
delimiter: ','
enclosure: '"'
header_row_count: 2
keys:
- tid
process:
tid: tid
name: name
destination:
plugin: entity:taxonomy_term
default_bundle: organizations
\ No newline at end of file
id: taxonomy_term_tags_csv_import
label: Import Taxonomy Term
migration_tags:
- CSV
migration_group: my_custom_migrate
source:
plugin: csv
path: public://import-sources/tags_term.csv
ids:
[tid]
delimiter: ','
enclosure: '"'
header_row_count: 2
keys:
- tid
process:
tid: tid
name: name
destination:
plugin: entity:taxonomy_term
default_bundle: tags
\ No newline at end of file
id: taxonomy_term_team_member_csv_import
label: Import Taxonomy Term
migration_tags:
- CSV
migration_group: my_custom_migrate
source:
plugin: csv
path: public://import-sources/team_member.csv
ids:
[tid]
delimiter: ','
enclosure: '"'
header_row_count: 2
keys:
- tid
process:
tid: tid
name: name
destination:
plugin: entity:taxonomy_term
default_bundle: team_member
\ No newline at end of file
id: taxonomy_term_themes_csv_import
label: Import Taxonomy Term
migration_tags:
- CSV
migration_group: my_custom_migrate
source:
plugin: csv
path: public://import-sources/themes_term.csv
ids:
[tid]
delimiter: ','
enclosure: '"'
header_row_count: 2
keys:
- tid
process:
tid: tid
name: name
destination:
plugin: entity:taxonomy_term
default_bundle: themes
\ No newline at end of file
id: user_csv_import
label: Import Users
migration_tags:
- CSV
migration_group: my_custom_migrate
source:
plugin: csv
path: public://import-sources/user_csv.csv
ids:
[uid]
delimiter: ','
enclosure: '"'
header_row_count: 2
keys:
- uid
process:
uid: uid
name: name
mail: email
status: status
roles: roles
destination:
plugin: entity:user
overwrite_properties:
- title
\ No newline at end of file
<?php
/**
* @file
* Migration src file for Portfolio.
*
* This module migrates data of Portfolio type.
*/
namespace Drupal\uvf_migrate\Plugin\migrate\source;
use Drupal\migrate_source_csv\Plugin\migrate\source\CSV;
/**
* Source plugin for the article.
*
* @MigrateSource(
* id = "portfolio"
* )
*/
class Portfolio extends CSV
{
}
......@@ -16,7 +16,17 @@ function uvf_migrate_uninstall() {
'migrate_plus.migration.files.yml',
'migrate_plus.migration.users.yml',
'migrate_plus.migration.article_csv_import.yml',
'migrate_plus.migration.portfolio_csv_import.yml'
'migrate_plus.migration.portfolio_csv_import.yml',
'migrate_plus.migration.taxonomy_term_apply_type_csv_import.yml',
'migrate_plus.migration.taxonomy_term_broadcast_types_csv_import.yml',
'migrate_plus.migration.taxonomy_term_countries_csv_import.yml',
'migrate_plus.migration.taxonomy_term_founding_status_csv_import.yml',
'migrate_plus.migration.taxonomy_term_media_csv_import.yml',
'migrate_plus.migration.taxonomy_term_organizations_csv_import.yml',
'migrate_plus.migration.taxonomy_term_tags_csv_import.yml',
'migrate_plus.migration.taxonomy_term_team_member_csv_import.yml',
'migrate_plus.migration.taxonomy_term_themes_csv_import.yml',
'migrate_plus.migration.user_csv_import.yml'
];
foreach($configs as $config){
$delete = \Drupal::database()->delete('config')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment