Version 1
[yaffs-website] / web / core / lib / Drupal / Core / Field / Plugin / DataType / FieldItem.php
diff --git a/web/core/lib/Drupal/Core/Field/Plugin/DataType/FieldItem.php b/web/core/lib/Drupal/Core/Field/Plugin/DataType/FieldItem.php
new file mode 100644 (file)
index 0000000..36ccd78
--- /dev/null
@@ -0,0 +1,21 @@
+<?php
+
+namespace Drupal\Core\Field\Plugin\DataType;
+
+
+/**
+ * Defines the base plugin for deriving data types for field types.
+ *
+ * Note that the class only register the plugin, and is actually never used.
+ * \Drupal\Core\Field\FieldItemBase is available for use as base class.
+ *
+ * @DataType(
+ *   id = "field_item",
+ *   label = @Translation("Field item"),
+ *   list_class = "\Drupal\Core\Field\FieldItemList",
+ *   deriver = "Drupal\Core\Field\Plugin\DataType\Deriver\FieldItemDeriver"
+ * )
+ */
+abstract class FieldItem {
+
+}