This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ID | Name | Password | First Name | Last Name | Roles | ||
---|---|---|---|---|---|---|---|
1 | Joe | joe@example.com | joe123 | Joe | B | administrator | |
2 | rakesh | rakesh@example.com | 123rakesh | Rakesh | James | authenticated,administrator | |
3 | jack | jack@example.com | jack | Jack | David | editor | |
4 | DD | dd@example.com | dd@123 | D | D | authenticated,administrator,editor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dependencies: | |
module: | |
- file | |
id: migrate_csv_articles_images | |
label: 'Migrate Images for the articles from the csv file' | |
migration_group: null | |
source: | |
constants: | |
source_base_path: '/Library/WebServer/Documents/drupal/modules/custom/migrate_csv/assets/pictures' | |
uri_file: 'public://images/pictures/' |
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 2.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ID,Title,Body,Picture,Tags,Author | |
1,Orange,"The orange is the fruit of the citrus species Citrus × sinensis in the family Rutaceae.[1] It is also called sweet orange, to distinguish it from the related Citrus × aurantium, referred to as bitter orange. The sweet orange reproduces asexually (apomixis through nucellar embryony); varieties of sweet orange arise through mutations.[2] | |
The orange is a hybrid between pomelo (Citrus maxima) and mandarin (Citrus reticulata).[2][3] The chloroplast genome, and therefore the maternal line, is that of pomelo.[4] The sweet orange has had its full genome sequenced.[2] | |
Sweet oranges were mentioned in Chinese literature in 314 BC.[2] As of 1987, orange trees were found to be the most cultivated fruit tree in the world.[5] Orange trees are widely grown in tropical and subtropical climates for their sweet fruit. The fruit of the orange tree can be eaten fresh, or processed for its juice or fragrant peel.[6] As of 2012, sweet oranges accounted for approximately 70% of citrus pr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
id: demo_user_migration | |
migration_tags: null | |
migration_group: null | |
label: 'User migration from CSV' | |
source: | |
plugin: csv | |
path: /Library/WebServer/Documents/d8/sites/default/files/demousers_migrate.csv | |
header_row_count: 1 | |
keys: | |
- ID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ID | name | firstname | lastname | Status | roles | ||
---|---|---|---|---|---|---|---|
1 | rakesh | rakesh.james@gmail.com | Rakesh | James | 1 | administrator | |
2 | james | james.rakesh@gmail.com | James | Rakesh | 1 | authenticated | |
3 | dummy | dummy@gmail.com | Dummy | User | 1 | testuser |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Drupal\example_events; | |
use Symfony\Component\EventDispatcher\Event; | |
class ExampleEvent extends Event { | |
const SUBMIT = 'event.submit'; | |
protected $referenceID; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
example_events.event_subscriber_example: | |
class: Drupal\example_events\EventSubscriber\ExampleEventSubScriber | |
tags: | |
- { name: 'event_subscriber' } |