In the 8.x-1.x branch the following interface methods type-hinted Drupal core's EntityManagerInteface:
\Drupal\entity_pilot\ArrivalInterface::createLinkedDeparture\Drupal\entity_pilot\ExistsPluginInterface::exists
This is because Entity Pilot was written before 8.0 came out and before the EntityTypeManagerInterface was introduced.
After this change, the signature of those two methods has changed. There is no BC layer so this is a hard-break and hence a new major version (2.x).
The changes are as follows:
ArrivalInterface::createLinkedDeparture
Before
- public function createLinkedDeparture(EntityManagerInterface $entity_manager, TypeLinkManagerInterface $type_link_manager);
After
+ public function createLinkedDeparture(EntityRepositoryInterface $entity_repository, TypeLinkManagerInterface $type_link_manager);
\Drupal\entity_pilot\ExistsPluginInterface::exists
Any custom ExistsPlugins will need to mirror this change.
Before
- public function exists(EntityManagerInterface $entity_manager, EntityInterface $passenger);
After
+ public function exists(EntityTypeManagerInterface $entity_manager, EntityInterface $passenger, EntityRepositoryInterface $entityRepository);