Skip to content

Commit 31bdaa5

Browse files
authored
Fix fatal when scaffolding a FieldWidget. (#4239)
1 parent 81e733f commit 31bdaa5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

templates/module/src/Plugin/Field/FieldWidget/fieldwidget.php.twig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ namespace Drupal\{{ module }}\Plugin\Field\FieldWidget;
1212
use Drupal\Core\Field\FieldItemListInterface;
1313
use Drupal\Core\Field\WidgetBase;
1414
use Drupal\Core\Form\FormStateInterface;
15+
use Drupal\Core\Field\Annotation\FieldWidget;
16+
use Drupal\Core\Annotation\Translation;
1517
{% endblock %}
1618

1719
{% block class_declaration %}

0 commit comments

Comments
 (0)