protected function WebformResultsCustomForm::hasData in Webform 8.5
Same name and namespace in other branches
- 6.x src/Form/WebformResultsCustomForm.php \Drupal\webform\Form\WebformResultsCustomForm::hasData()
Determine if there is custom data for given name.
Parameters
string $name: The name for the custom data.
Return value
bool TRUE if there is custom data for given name.
1 call to WebformResultsCustomForm::hasData()
- WebformResultsCustomForm::buildForm in src/
Form/ WebformResultsCustomForm.php - Form constructor.
File
- src/
Form/ WebformResultsCustomForm.php, line 538
Class
- WebformResultsCustomForm
- Webform for webform results custom(ize) webform.
Namespace
Drupal\webform\FormCode
protected function hasData($name) {
$method = $this
->getDataMethod('has');
$key = $this
->getDataKey($name);
return $this->webform
->{$method}($key);
}