You are here

public function YamlFormSubmissionStorage::invokeYamlFormElements in YAML Form 8

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

Parameters

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

\Drupal\yamlform\YamlFormSubmissionInterface $yamlform_submission: A form submission.

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

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

Overrides YamlFormSubmissionStorageInterface::invokeYamlFormElements

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

File

src/YamlFormSubmissionStorage.php, line 637

Class

YamlFormSubmissionStorage
Defines the form submission storage.

Namespace

Drupal\yamlform

Code

public function invokeYamlFormElements($method, YamlFormSubmissionInterface $yamlform_submission, &$context1 = NULL, &$context2 = NULL) {
  $yamlform = $yamlform_submission
    ->getYamlForm();
  $yamlform
    ->invokeElements($method, $yamlform_submission, $context1, $context2);
}