Security update for Core, with self-updated composer
[yaffs-website] / vendor / drupal / console-en / translations / generate.plugin.migrate.source.yml
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'
4 options:
5   module: 'The Module name.'
6   class: 'Plugin class name'
7   plugin-id: 'Plugin id'
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'
12 questions:
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'
21 examples:
22   - description: 'Generate a migration source plugin specifying the module name, the class, its plugin id, the table and its alias'
23     execution: |
24       drupal generate:plugin:migrate:source  \
25         --module="modulename"  \
26         --class="PluginClassName"  \
27         --plugin-id="plugin_class_name"  \
28         --table="DefaultTableName"  \
29         --alias="D"
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'
31     execution: |
32       drupal generate:plugin:migrate:source  \
33         --module="modulename"  \
34         --class="DefaultPluginClass"  \
35         --plugin-id="default_plugin_class"  \
36         --table="users"  \
37         --alias="u"  \
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"'