Version 1
[yaffs-website] / web / core / lib / Drupal / Core / Entity / Sql / SqlEntityStorageInterface.php
diff --git a/web/core/lib/Drupal/Core/Entity/Sql/SqlEntityStorageInterface.php b/web/core/lib/Drupal/Core/Entity/Sql/SqlEntityStorageInterface.php
new file mode 100644 (file)
index 0000000..b97e0fd
--- /dev/null
@@ -0,0 +1,24 @@
+<?php
+
+namespace Drupal\Core\Entity\Sql;
+
+use Drupal\Core\Entity\EntityStorageInterface;
+
+/**
+ * A common interface for SQL-based entity storage implementations.
+ */
+interface SqlEntityStorageInterface extends EntityStorageInterface {
+
+  /**
+   * Gets a table mapping for the entity's SQL tables.
+   *
+   * @param \Drupal\Core\Field\FieldStorageDefinitionInterface[] $storage_definitions
+   *   (optional) An array of field storage definitions to be used to compute
+   *   the table mapping. Defaults to the ones provided by the entity manager.
+   *
+   * @return \Drupal\Core\Entity\Sql\TableMappingInterface
+   *   A table mapping object for the entity's tables.
+   */
+  public function getTableMapping(array $storage_definitions = NULL);
+
+}