The generate:plugin:field command: Generate field type, widget and formatter plugins.
Usage:
$ drupal generate:plugin:field [options]
Option | Details |
---|---|
module | The Module name. |
type-class-name | Field type plugin class name |
type-label | Field type plugin label |
type-plugin-id | Field type plugin id |
type-description | commands.generate.plugin.field.options.type-type-description |
formatter-class-name | commands.generate.plugin.field.options.class-name |
formatter-label | Field formatter plugin label |
formatter-plugin-id | Field formatter plugin id |
widget-class-name | Field formatter 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 |