Change record status: 
Project: 
Introduced in branch: 
8.5.x
Introduced in version: 
8.5.0-alpha1
Description: 

Newer versions of Drupal 8 are starting to make use of revisions in more places, so, for performance reasons, Drupal 8.5.0 added the ability to load multiple revisions at once through a new method on \Drupal\Core\Entity\EntityStorageInterface: loadMultipleRevisions().

For this new functionality, some changes were made to a few internal (protected) methods from SqlContentEntityStorage, as follows:

  • loadFromSharedTables() has received a new parameter, $load_from_revision, to indicate that revision values should be fetched
  • buildQuery() has changed its $revision_id parameter to $revision_ids to indicate that an array of revision IDs should be passed-in instead of a single revision ID. Note that a backwards compatibility layer has been implemented for this methods which allows it to be used like before (with a single revision ID), but this BC layer will be removed before Drupal 9.0.0
  • doLoadRevisionFieldItems() has been deprecated in favor of a new method which loads the field items values for multiple revisions at once: doLoadMultipleRevisionsFieldItems()
Impacts: 
Module developers