You are here

public function WebformSubmissionStorage::invokeWebformElements in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/WebformSubmissionStorage.php \Drupal\webform\WebformSubmissionStorage::invokeWebformElements()

Invoke a webform submission's webform's elements method.

Parameters

string $method: The webform element method to be invoked.

\Drupal\webform\WebformSubmissionInterface $webform_submission: A webform submission.

mixed $context1: (optional) An additional variable that is passed by reference.

mixed $context2: (optional) An additional variable that is passed by reference.

Overrides WebformSubmissionStorageInterface::invokeWebformElements

5 calls to WebformSubmissionStorage::invokeWebformElements()
WebformSubmissionStorage::create in src/WebformSubmissionStorage.php
Constructs a new entity object, without permanently saving it.
WebformSubmissionStorage::delete in src/WebformSubmissionStorage.php
Deletes permanently saved entities.
WebformSubmissionStorage::doPostSave in src/WebformSubmissionStorage.php
Performs post save entity processing.
WebformSubmissionStorage::doPreSave in src/WebformSubmissionStorage.php
Performs presave entity processing.
WebformSubmissionStorage::postLoad in src/WebformSubmissionStorage.php
Attaches data to entities upon loading.

File

src/WebformSubmissionStorage.php, line 1225

Class

WebformSubmissionStorage
Defines the webform submission storage.

Namespace

Drupal\webform

Code

public function invokeWebformElements($method, WebformSubmissionInterface $webform_submission, &$context1 = NULL, &$context2 = NULL) {
  $webform = $webform_submission
    ->getWebform();
  if ($webform) {
    $webform
      ->invokeElements($method, $webform_submission, $context1, $context2);
  }
}