SqlEntityStorageInterface.php 743 B

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