You are here

public function YamlFormSubmissionStorage::loadMultiple in YAML Form 8

Loads one or more entities.

Parameters

$ids: An array of entity IDs, or NULL to load all entities.

Return value

\Drupal\Core\Entity\EntityInterface[] An array of entity objects indexed by their IDs. Returns an empty array if no matching entities are found.

Overrides EntityStorageBase::loadMultiple

1 call to YamlFormSubmissionStorage::loadMultiple()
YamlFormSubmissionStorage::deleteAll in src/YamlFormSubmissionStorage.php
Delete all form submissions.

File

src/YamlFormSubmissionStorage.php, line 86

Class

YamlFormSubmissionStorage
Defines the form submission storage.

Namespace

Drupal\yamlform

Code

public function loadMultiple(array $ids = NULL) {

  /** @var \Drupal\yamlform\YamlFormSubmissionInterface[] $yamlform_submissions */
  $yamlform_submissions = parent::loadMultiple($ids);
  $this
    ->loadData($yamlform_submissions);
  return $yamlform_submissions;
}