public function YamlForm::addYamlFormHandler in YAML Form 8
Saves a form handler for this form.
Parameters
array $configuration: An array of form handler configuration.
Return value
string The form handler ID.
Overrides YamlFormInterface::addYamlFormHandler
File
- src/
Entity/ YamlForm.php, line 1362
Class
- YamlForm
- Defines the form entity.
Namespace
Drupal\yamlform\EntityCode
public function addYamlFormHandler(array $configuration) {
$this
->getHandlers()
->addInstanceId($configuration['handler_id'], $configuration);
return $configuration['handler_id'];
}