You are here

protected function WebformResultsCustomForm::getDataMethod in Webform 8.5

Same name and namespace in other branches
  1. 6.x 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 507

Class

WebformResultsCustomForm
Webform for webform results custom(ize) webform.

Namespace

Drupal\webform\Form

Code

protected function getDataMethod($method) {
  return $method . ($this->type === static::CUSTOMIZE_USER ? 'UserData' : 'State');
}