3 namespace Drupal\Core\Entity\Sql;
5 use Drupal\Core\Entity\EntityStorageInterface;
8 * A common interface for SQL-based entity storage implementations.
10 interface SqlEntityStorageInterface extends EntityStorageInterface {
13 * Gets a table mapping for the entity's SQL tables.
15 * @param \Drupal\Core\Field\FieldStorageDefinitionInterface[] $storage_definitions
16 * (optional) An array of field storage definitions to be used to compute
17 * the table mapping. Defaults to the ones provided by the entity manager.
19 * @return \Drupal\Core\Entity\Sql\TableMappingInterface
20 * A table mapping object for the entity's tables.
22 public function getTableMapping(array $storage_definitions = NULL);