drupal-console
drupal-console copied to clipboard
[generate:plugin:field] Syntax error in annotation widget file
Annotation code in ExampleWidgetType.php has a sintax error, "module" line does not finish with comma.
/**
* Plugin implementation of the 'example_widget_type' widget.
*
* @FieldWidget(
* id = "example_widget_type",
* module = "example"
* label = @Translation("Example"),
* field_types = {
* "example_field_type"
* }
* )
*/
Hi, this also happens for generate:plugin:fieldwidget. In addition, use Drupal\Core\Annotation\Translation;
is missing.