Further modules included.
[yaffs-website] / web / modules / contrib / drupalmoduleupgrader / templates / Formatter.html.twig
diff --git a/web/modules/contrib/drupalmoduleupgrader/templates/Formatter.html.twig b/web/modules/contrib/drupalmoduleupgrader/templates/Formatter.html.twig
new file mode 100644 (file)
index 0000000..e55cc58
--- /dev/null
@@ -0,0 +1,32 @@
+/**
+ * @file
+ * Contains \Drupal\{{ module }}\Plugin\Field\FieldFormatter\{{ class }}.
+ */
+
+namespace Drupal\{{ module }}\Plugin\Field\FieldFormatter;
+
+use Drupal\Core\Field\FormatterBase;
+
+/**
+ * @FieldFormatter(
+ *  id = "{{ info.id }}",
+ *  label = @Translation("{{ info.label }}"),
+{% if info.description %}
+ *  description = @Translation("{{ info.description }}"),
+{% endif %}
+ *  field_types = {{ '{' }}"{{ info.field_types|join('", "') }}"{{ '}' }}
+ * )
+ */
+class {{ class }} extends FormatterBase {
+
+  /**
+   * @FIXME
+   * Move all logic relating to the {{ info.id }} formatter into this
+   * class. For more information, see:
+   *
+   * https://www.drupal.org/node/1805846
+   * https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Field%21FormatterInterface.php/interface/FormatterInterface/8
+   * https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Field%21FormatterBase.php/class/FormatterBase/8
+   */
+
+}