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

[generate:plugin:field] Syntax error in annotation widget file

Open RafaTicArte opened this issue 4 years ago • 1 comments

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"
 *   }
 * )
 */

RafaTicArte avatar Jan 16 '20 09:01 RafaTicArte

Hi, this also happens for generate:plugin:fieldwidget. In addition, use Drupal\Core\Annotation\Translation; is missing.

vebrovski avatar Feb 21 '20 12:02 vebrovski