drupal-console
drupal-console copied to clipboard
[generate:plugin:field] A comma it is missing in FieldWidget class
A comma it is missing in FieldWidget class
Problem/Motivation
A comma is missing in annotation @FieldWidget after module. And once creating the field, it fails.
Example:
* @FieldWidget(
* id = "foo_widget_type",
* module = "foo"
* label = @Translation("Foo widget type"),
* field_types = {
* "foo_field_type"
* }
* )
How to reproduce
Include steps related how to reproduce.
- drupal gpf
- Enter the module that the plugin is going to be installed
- Enter class names details, leave the rest as default
Details to include:
- Drupal 8.9.0-beta2
- drupal/console 1.9.4.
- Drupal Console version 1.9.4
Solution
Add a comma after module annotation
PR https://github.com/hechoendrupal/drupal-console/pull/4258