You are here

protected function YamlFormSubmissionStorage::postLoad in YAML Form 8

Attaches data to entities upon loading.

Parameters

array $entities: Associative array of query results, keyed on the entity ID.

Overrides EntityStorageBase::postLoad

File

src/YamlFormSubmissionStorage.php, line 482

Class

YamlFormSubmissionStorage
Defines the form submission storage.

Namespace

Drupal\yamlform

Code

protected function postLoad(array &$entities) {

  /** @var \Drupal\yamlform\YamlFormSubmissionInterface $entity */
  $return = parent::postLoad($entities);
  foreach ($entities as $entity) {
    $this
      ->invokeYamlFormElements('postLoad', $entity);
    $this
      ->invokeYamlFormHandlers('postLoad', $entity);
  }
  return $return;
}