You are here

protected function WebformSubmissionStorage::doLoadMultiple in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/WebformSubmissionStorage.php \Drupal\webform\WebformSubmissionStorage::doLoadMultiple()

Performs storage-specific loading of entities.

Override this method to add custom functionality directly after loading. This is always called, while self::postLoad() is only called when there are actual results.

Parameters

array|null $ids: (optional) An array of entity IDs, or NULL to load all entities.

Return value

\Drupal\Core\Entity\EntityInterface[] Associative array of entities, keyed on the entity ID.

Overrides SqlContentEntityStorage::doLoadMultiple

File

src/WebformSubmissionStorage.php, line 167

Class

WebformSubmissionStorage
Defines the webform submission storage.

Namespace

Drupal\webform

Code

protected function doLoadMultiple(array $ids = NULL) {

  /** @var \Drupal\webform\WebformSubmissionInterface[] $webform_submissions */
  $webform_submissions = parent::doLoadMultiple($ids);
  $this
    ->loadData($webform_submissions);
  return $webform_submissions;
}