Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By amateescu on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.5.x
Introduced in version:
8.5.0-alpha1
Issue links:
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 fetchedbuildQuery()
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.0doLoadRevisionFieldItems()
has been deprecated in favor of a new method which loads the field items values for multiple revisions at once:doLoadMultipleRevisionsFieldItems()
Impacts:
Module developers