Version 1
[yaffs-website] / web / core / modules / system / tests / modules / entity_test / src / FieldStorageDefinition.php
diff --git a/web/core/modules/system/tests/modules/entity_test/src/FieldStorageDefinition.php b/web/core/modules/system/tests/modules/entity_test/src/FieldStorageDefinition.php
new file mode 100644 (file)
index 0000000..1a37d63
--- /dev/null
@@ -0,0 +1,25 @@
+<?php
+
+namespace Drupal\entity_test;
+
+use Drupal\Core\Field\BaseFieldDefinition;
+
+/**
+ * A custom field storage definition class.
+ *
+ * For convenience we extend from BaseFieldDefinition although this should not
+ * implement FieldDefinitionInterface.
+ *
+ * @todo Provide and make use of a proper FieldStorageDefinition class instead:
+ *   https://www.drupal.org/node/2280639.
+ */
+class FieldStorageDefinition extends BaseFieldDefinition {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function isBaseField() {
+    return FALSE;
+  }
+
+}