protected function WebformResultsCustomForm::getDataMethod in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Form/WebformResultsCustomForm.php \Drupal\webform\Form\WebformResultsCustomForm::getDataMethod()
Get the data method name depending of the custom type.
Parameters
string $method: The method prefix.
Return value
string The data method name depending of the custom type.
4 calls to WebformResultsCustomForm::getDataMethod()
- WebformResultsCustomForm::deleteData in src/
Form/ WebformResultsCustomForm.php - Delete custom data.
- WebformResultsCustomForm::getData in src/
Form/ WebformResultsCustomForm.php - Get custom data.
- WebformResultsCustomForm::hasData in src/
Form/ WebformResultsCustomForm.php - Determine if there is custom data for given name.
- WebformResultsCustomForm::setData in src/
Form/ WebformResultsCustomForm.php - Set custom data.
File
- src/
Form/ WebformResultsCustomForm.php, line 488
Class
- WebformResultsCustomForm
- Webform for webform results custom(ize) webform.
Namespace
Drupal\webform\FormCode
protected function getDataMethod($method) {
return $method . ($this->type === static::CUSTOMIZE_USER ? 'UserData' : 'State');
}