generate:plugin:fieldwidget
Generate field widget plugin.
Usage:
drupal generate:plugin:fieldwidget [options]
gpfw
Available options
Option | Details |
---|---|
--module | モジュール名 |
--class | Plugin class name |
--label | Plugin label |
--plugin-id | Plugin id |
--field-type | Field type the plugin can be used with |
Examples
Generate a text type field widget plugin specifying the module name, the class, its label, the plugin id and the field type
drupal generate:plugin:fieldwidget \
--module="modulename" \
--class="ExampleFieldWidget" \
--label="Example field widget" \
--plugin-id="example_field_widget" \
--field-type="text"