hechoendrupal / drupal-console

The Drupal CLI. A tool to generate boilerplate code, interact with and debug Drupal.
http://drupalconsole.com
GNU General Public License v2.0
940 stars 559 forks source link

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

Open thetwentyseven opened 4 years ago

thetwentyseven commented 4 years ago

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:

Solution

Add a comma after module annotation

LOBsTerr commented 4 years ago

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