1 description: 'Generate a migrate source plugin'
2 help: 'The <info>generate:migrate:plugin:source</info> command helps you generate a new migrate source plugin.'
3 welcome: 'Welcome to the Drupal Migrate Source Plugin generator'
5 module: 'The Module name.'
6 class: 'Plugin class name'
8 table: 'Table to query'
9 alias: 'Short alias to refer to the table as'
10 group-by: 'Field to group results by'
11 fields: 'Fields to export'
13 module: 'Enter the module name'
14 class: 'Enter the plugin class name'
15 plugin-id: 'Enter the plugin id'
16 table: 'Enter the table name'
17 alias: 'Enter the alias for the table'
18 group-by: 'Enter a field to group by if desired'
19 id: 'Enter the field id or press <info>enter</enter> if done'
20 description: 'Enter the field description'
22 - description: 'Generate a migration source plugin specifying the module name, the class, its plugin id, the table and its alias'
24 drupal generate:plugin:migrate:source \
25 --module="modulename" \
26 --class="PluginClassName" \
27 --plugin-id="plugin_class_name" \
28 --table="DefaultTableName" \
30 - description: 'Generate a migration source plugin for specific fields of the users table specifying the module name, the class, its plugin id, the table, its alias and the fields'
32 drupal generate:plugin:migrate:source \
33 --module="modulename" \
34 --class="DefaultPluginClass" \
35 --plugin-id="default_plugin_class" \
38 --fields='"id":"id", "description":"the user id"' \
39 --fields='"id":"username", "description":"the username"' \
40 --fields='"id":"password", "description":"the user password"' \
41 --fields='"id":"email", "description":"the user email"'