1. 8.2.x core/modules/field/src/Plugin/migrate/process/FieldType.php
  2. 8.2.x core/lib/Drupal/Core/Field/Annotation/FieldType.php
  3. 8.0.x core/modules/field/src/Plugin/migrate/process/d6/FieldType.php
  4. 8.0.x core/lib/Drupal/Core/Field/Annotation/FieldType.php
  5. 8.1.x core/modules/field/src/Plugin/migrate/process/FieldType.php
  6. 8.1.x core/lib/Drupal/Core/Field/Annotation/FieldType.php
  7. 8.3.x core/modules/field/src/Plugin/migrate/process/FieldType.php
  8. 8.3.x core/lib/Drupal/Core/Field/Annotation/FieldType.php

Namespace

Drupal\Core\Field\Annotation

File

core/lib/Drupal/Core/Field/Annotation/FieldType.php
View source
  1. <?php
  2. namespace Drupal\Core\Field\Annotation;
  3. use Drupal\Core\TypedData\Annotation\DataType;
  4. /**
  5. * Defines a FieldType annotation object.
  6. *
  7. * Additional annotation keys for field types can be defined in
  8. * hook_field_info_alter().
  9. *
  10. * @ingroup field_types
  11. *
  12. * @Annotation
  13. */
  14. class FieldType extends DataType {
  15. /**
  16. * The plugin ID.
  17. *
  18. * @var string
  19. */
  20. public $id;
  21. /**
  22. * The name of the module providing the field type plugin.
  23. *
  24. * @var string
  25. */
  26. public $module;
  27. /**
  28. * The human-readable name of the field type.
  29. *
  30. * @ingroup plugin_translatable
  31. *
  32. * @var \Drupal\Core\Annotation\Translation
  33. */
  34. public $label;
  35. /**
  36. * A short human readable description for the field type.
  37. *
  38. * @ingroup plugin_translatable
  39. *
  40. * @var \Drupal\Core\Annotation\Translation
  41. */
  42. public $description;
  43. /**
  44. * The category under which the field type should be listed in the UI.
  45. *
  46. * @ingroup plugin_translatable
  47. *
  48. * @var \Drupal\Core\Annotation\Translation
  49. */
  50. public $category = '';
  51. /**
  52. * The plugin_id of the default widget for this field type.
  53. *
  54. * This widget must be available whenever the field type is available (i.e.
  55. * provided by the field type module, or by a module the field type module
  56. * depends on).
  57. *
  58. * @var string
  59. */
  60. public $default_widget;
  61. /**
  62. * The plugin_id of the default formatter for this field type.
  63. *
  64. * This formatter must be available whenever the field type is available (i.e.
  65. * provided by the field type module, or by a module the field type module
  66. * depends on).
  67. *
  68. * @var string
  69. */
  70. public $default_formatter;
  71. /**
  72. * A boolean stating that fields of this type cannot be created through the UI.
  73. *
  74. * @var bool
  75. */
  76. public $no_ui = FALSE;
  77. /**
  78. * {@inheritdoc}
  79. */
  80. public $list_class;
  81. }

Classes

Namesort descending Description
FieldType Defines a FieldType annotation object.