You are here

public function YamlFormSubmissionStorage::invokeYamlFormHandlers in YAML Form 8

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

Parameters

string $method: The form handler 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::invokeYamlFormHandlers

5 calls to YamlFormSubmissionStorage::invokeYamlFormHandlers()
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 629

Class

YamlFormSubmissionStorage
Defines the form submission storage.

Namespace

Drupal\yamlform

Code

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