EntityManagerInterface.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. namespace Drupal\Core\Entity;
  3. use Drupal\Core\Field\FieldDefinitionListenerInterface;
  4. use Drupal\Core\Field\FieldStorageDefinitionListenerInterface;
  5. /**
  6. * Provides an interface for entity type managers.
  7. *
  8. * @deprecated in drupal:8.0.0 and is removed from drupal:9.0.0.
  9. *
  10. * @see https://www.drupal.org/node/2549139
  11. */
  12. interface EntityManagerInterface extends EntityTypeListenerInterface, EntityBundleListenerInterface, FieldStorageDefinitionListenerInterface, FieldDefinitionListenerInterface, EntityTypeManagerInterface, EntityTypeRepositoryInterface, EntityTypeBundleInfoInterface, EntityDisplayRepositoryInterface, EntityFieldManagerInterface, EntityRepositoryInterface {
  13. /**
  14. * @deprecated in drupal:8.0.0 and is removed from drupal:9.0.0. Use
  15. * \Drupal\Core\Entity\EntityLastInstalledSchemaRepositoryInterface::getLastInstalledDefinition()
  16. * instead.
  17. *
  18. * @see https://www.drupal.org/node/2549139
  19. */
  20. public function getLastInstalledDefinition($entity_type_id);
  21. /**
  22. * @deprecated in drupal:8.0.0 and is removed from drupal:9.0.0. Use
  23. * \Drupal\Core\Entity\EntityLastInstalledSchemaRepositoryInterface::getLastInstalledFieldStorageDefinitions()
  24. * instead.
  25. *
  26. * @see https://www.drupal.org/node/2549139
  27. */
  28. public function getLastInstalledFieldStorageDefinitions($entity_type_id);
  29. }