description: 'Generate field type, widget and formatter plugins.'
help: 'The <info>generate:plugin:field</info> command helps you generate a full set of field plugin: field type, field formatter and field widget.'
welcome: 'Welcome to the Drupal Field Plugin generator'
options:
  module: 'The Module name.'
  type-class: 'Field type plugin class name'
  type-label: 'Field type plugin label'
  type-plugin-id: 'Field type plugin id'
  type-description: 'Field type plugin description'
  formatter-class: 'Field formatter plugin class name'
  formatter-label: 'Field formatter plugin label'
  formatter-plugin-id: 'Field formatter plugin id'
  widget-class: 'Field widget plugin class name'
  widget-label: 'Field widget plugin label'
  widget-plugin-id: 'Field widget plugin id'
  field-type: 'Field type the formatter and widget plugin can be used with'
  default-widget: 'Default field widget of the field type plugin'
  default-formatter: 'Default field formatter of field type plugin'
questions:
  module: 'Enter the module name'
  type-class: 'Enter field type plugin class name'
  type-label: 'Enter the field type plugin label'
  type-plugin-id: 'Enter the field type plugin id'
  type-description: 'Enter the field type plugin description'
  formatter-class: 'Enter the field formatter plugin class name'
  formatter-label: 'Enter the field formatter plugin label'
  formatter-plugin-id: 'Enter the field formatter plugin id'
  widget-class: 'Enter the field widget plugin class name'
  widget-label: 'Enter the field widget plugin label'
  widget-plugin-id: 'Enter the field widget plugin id'
  field-type: 'Enter the field type the formatter and widget plugin can be used with'
  default-widget: 'Enter the default field widget of the field type plugin'
  default-formatter: 'Enter the default field formatter of field type plugin'
suggestions:
  my-field-type: 'My Field Type'
examples:
  - description: 'Generate field type, widget and formatter plugins specifying the module name, the type (class, label, plugin id and description), the formatter (class, label, plugin id) and the widget (class, label and plugin id)'
    execution: |
      drupal generate:plugin:field  \
        --module="modulename"  \
        --type-class="ExampleFieldType"  \
        --type-label="Example field type"  \
        --type-plugin-id="example_field_type"  \
        --type-description="My Field Type"  \
        --formatter-class="ExampleFormatterType"  \
        --formatter-label="Example formatter type"  \
        --formatter-plugin-id="example_formatter_type"  \
        --widget-class="ExampleWidgetType"  \
        --widget-label="Example widget type"  \
        --widget-plugin-id="example_widget_type"  \
        --field-type="example_field_type"  \
        --default-widget="example_widget_type"  \
        --default-formatter="example_formatter_type"
