X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fmodules%2Fcontrib%2Fdrupalmoduleupgrader%2Ftemplates%2FWidget.html.twig;fp=web%2Fmodules%2Fcontrib%2Fdrupalmoduleupgrader%2Ftemplates%2FWidget.html.twig;h=18c1fbe68b46415045207da6bfb12b3293c5b141;hp=0000000000000000000000000000000000000000;hb=8acec36f19c470dfcda1ae2336826a782f41874c;hpb=e0411c4e83ba0d079034db83c3f7f55be24a0e35 diff --git a/web/modules/contrib/drupalmoduleupgrader/templates/Widget.html.twig b/web/modules/contrib/drupalmoduleupgrader/templates/Widget.html.twig new file mode 100644 index 000000000..18c1fbe68 --- /dev/null +++ b/web/modules/contrib/drupalmoduleupgrader/templates/Widget.html.twig @@ -0,0 +1,32 @@ +/** + * @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 + */ + +}