Widget.html.twig in Drupal 7 to 8/9 Module Upgrader 8
Contains \Drupal\{{ module }}\Plugin\Field\FieldWidget\{{ class }}.
File
templates/Widget.html.twigView source
- /**
- * @file
- * Contains \Drupal\{{ module }}\Plugin\Field\FieldWidget\{{ class }}.
- */
-
- namespace Drupal\{{ module }}\Plugin\Field\FieldWidget;
-
- use Drupal\Core\Field\WidgetBase;
-
- /**
- * @FieldWidget(
- * id = "{{ info.id }}",
- * label = @Translation("{{ info.label }}"),
- {% if info.description %}
- * description = @Translation("{{ info.description }}"),
- {% endif %}
- * field_types = {{ '{' }}"{{ info.field_types|join('", "') }}"{{ '}' }}
- * )
- */
- class {{ class }} extends WidgetBase {
-
- /**
- * @FIXME
- * Move all logic relating to the {{ info.id }} widget into this class.
- * For more information, see:
- *
- * https://www.drupal.org/node/1796000
- * https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Field%21WidgetInterface.php/interface/WidgetInterface/8
- * https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Field%21WidgetBase.php/class/WidgetBase/8
- */
-
- }