You are here

public function YamlFormSubmission::invokeYamlFormHandlers in YAML Form 8

Invoke all form handlers method.

Parameters

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

Overrides YamlFormSubmissionInterface::invokeYamlFormHandlers

File

src/Entity/YamlFormSubmission.php, line 429

Class

YamlFormSubmission
Defines the YamlFormSubmission entity.

Namespace

Drupal\yamlform\Entity

Code

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