Further modules included.
[yaffs-website] / web / modules / contrib / drupalmoduleupgrader / templates / Formatter.html.twig
1 /**
2  * @file
3  * Contains \Drupal\{{ module }}\Plugin\Field\FieldFormatter\{{ class }}.
4  */
5
6 namespace Drupal\{{ module }}\Plugin\Field\FieldFormatter;
7
8 use Drupal\Core\Field\FormatterBase;
9
10 /**
11  * @FieldFormatter(
12  *  id = "{{ info.id }}",
13  *  label = @Translation("{{ info.label }}"),
14 {% if info.description %}
15  *  description = @Translation("{{ info.description }}"),
16 {% endif %}
17  *  field_types = {{ '{' }}"{{ info.field_types|join('", "') }}"{{ '}' }}
18  * )
19  */
20 class {{ class }} extends FormatterBase {
21
22   /**
23    * @FIXME
24    * Move all logic relating to the {{ info.id }} formatter into this
25    * class. For more information, see:
26    *
27    * https://www.drupal.org/node/1805846
28    * https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Field%21FormatterInterface.php/interface/FormatterInterface/8
29    * https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Field%21FormatterBase.php/class/FormatterBase/8
30    */
31
32 }