1 description: 'Generate field type plugin.'
2 help: 'The <info>generate:plugin:fieldtype</info> command helps you generate a new field type plugin.'
3 welcome: 'Welcome to the Drupal Field Type Plugin generator'
5 module: 'The Module name.'
6 class: 'Plugin class name'
9 description: 'Plugin Description'
10 default-widget: 'Default field widget of this plugin'
11 default-formatter: 'Default field formatter of this plugin'
13 module: 'Enter the module name'
14 class: 'Enter the plugin class name'
15 label: 'Enter the plugin label'
16 plugin-id: 'Enter the plugin id'
17 description: 'Enter the plugin Description'
18 default-widget: 'Enter the default field widget of this plugin'
19 default-formatter: 'Enter the default field formatter of this plugin'
21 my-field-type: 'My Field Type'
23 - description: 'Generate a field type plugin specifying the module name, the class, its label, the plugin id and a description'
25 drupal generate:plugin:fieldtype \
26 --module="modulename" \
27 --class="ExampleFieldType" \
28 --label="Example field type" \
29 --plugin-id="example_field_type" \
30 --description="My Field Type"
31 - description: 'Generate a field type plugin with a default widget and formatter specifying the module name, the class, its label, the plugin id and a description'
33 drupal generate:plugin:fieldtype \
34 --module="modulename" \
35 --class="ExampleFieldType" \
36 --label="Example field type" \
37 --plugin-id="example_field_type" \
38 --description="My Field Type" \
39 --default-widget="DefaultWidget" \
40 --default-formatter="DefaultFormatter"