You are here

public function YamlFormSubmission::invokeYamlFormElements in YAML Form 8

Invoke a form element elements method.

Parameters

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

Overrides YamlFormSubmissionInterface::invokeYamlFormElements

File

src/Entity/YamlFormSubmission.php, line 438

Class

YamlFormSubmission
Defines the YamlFormSubmission entity.

Namespace

Drupal\yamlform\Entity

Code

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