You are here

protected function ContentEntityStorageBase::doLoadMultipleRevisionsFieldItems in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php \Drupal\Core\Entity\ContentEntityStorageBase::doLoadMultipleRevisionsFieldItems()
  2. 10 core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php \Drupal\Core\Entity\ContentEntityStorageBase::doLoadMultipleRevisionsFieldItems()

Actually loads revision field item values from the storage.

This method should always be overridden and not called either directly or from parent::doLoadMultipleRevisionsFieldItems. It will be marked abstract in drupal:9.0.0

@todo Remove this logic and make the method abstract in https://www.drupal.org/project/drupal/issues/3069696

Parameters

array $revision_ids: An array of revision identifiers.

Return value

\Drupal\Core\Entity\EntityInterface[] The specified entity revisions or an empty array if none are found.

2 calls to ContentEntityStorageBase::doLoadMultipleRevisionsFieldItems()
ContentEntityStorageBase::loadMultipleRevisions in core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php
Loads multiple entity revisions.
TestContentEntityStorageBase::doLoadMultipleRevisionsFieldItems in core/tests/Drupal/Tests/Core/Entity/LegacyContentEntityStorageBaseTest.php
Actually loads revision field item values from the storage.
2 methods override ContentEntityStorageBase::doLoadMultipleRevisionsFieldItems()
SqlContentEntityStorage::doLoadMultipleRevisionsFieldItems in core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php
Actually loads revision field item values from the storage.
TestContentEntityStorageBase::doLoadMultipleRevisionsFieldItems in core/tests/Drupal/Tests/Core/Entity/LegacyContentEntityStorageBaseTest.php
Actually loads revision field item values from the storage.

File

core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php, line 624

Class

ContentEntityStorageBase
Base class for content entity storage handlers.

Namespace

Drupal\Core\Entity

Code

protected function doLoadMultipleRevisionsFieldItems($revision_ids) {
  @trigger_error('Calling ' . __NAMESPACE__ . 'ContentEntityStorageBase::doLoadMultipleRevisionsFieldItems() directly is deprecated in drupal:8.8.0 and the method will be made abstract in drupal:9.0.0. Storage implementations should override and implement their own loading logic. See https://www.drupal.org/node/3069692', E_USER_DEPRECATED);
  $revisions = [];
  foreach ($revision_ids as $revision_id) {
    $revisions[] = $this
      ->doLoadRevisionFieldItems($revision_id);
  }
  return $revisions;
}