public function YamlForm::invokeHandlers in YAML Form 8
Invoke a handlers method.
Parameters
string $method: The handle method to be invoked.
mixed $data: The argument to passed by reference to the handler method.
Overrides YamlFormInterface::invokeHandlers
1 call to YamlForm::invokeHandlers()
- YamlForm::initElements in src/
Entity/ YamlForm.php - Initialize parse form elements.
File
- src/
Entity/ YamlForm.php, line 1370
Class
- YamlForm
- Defines the form entity.
Namespace
Drupal\yamlform\EntityCode
public function invokeHandlers($method, &$data, &$context1 = NULL, &$context2 = NULL) {
$handlers = $this
->getHandlers();
foreach ($handlers as $handler) {
if ($handler
->isEnabled()) {
$handler
->{$method}($data, $context1, $context2);
}
}
}