drupal-console icon indicating copy to clipboard operation
drupal-console copied to clipboard

[generate:plugin:field] A comma it is missing in FieldWidget class

Open thetwentyseven opened this issue 4 years ago • 1 comments

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.

  1. drupal gpf
  2. Enter the module that the plugin is going to be installed
  3. 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

thetwentyseven avatar May 27 '20 15:05 thetwentyseven

PR https://github.com/hechoendrupal/drupal-console/pull/4258

LOBsTerr avatar Aug 05 '20 14:08 LOBsTerr