protected function WebformResultsCustomForm::setData in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Form/WebformResultsCustomForm.php \Drupal\webform\Form\WebformResultsCustomForm::setData()
Set custom data.
Parameters
string $name: The name for the custom data.
mixed $value: The data to store.
1 call to WebformResultsCustomForm::setData()
- WebformResultsCustomForm::submitForm in src/
Form/ WebformResultsCustomForm.php - Form submission handler.
File
- src/
Form/ WebformResultsCustomForm.php, line 557
Class
- WebformResultsCustomForm
- Webform for webform results custom(ize) webform.
Namespace
Drupal\webform\FormCode
protected function setData($name, $value) {
$method = $this
->getDataMethod('set');
$key = $this
->getDataKey($name);
$this->webform
->{$method}($key, $value);
}