public function WebformTokenManagerInterface::elementValidate in Webform 6.x
Same name and namespace in other branches
- 8.5 src/WebformTokenManagerInterface.php \Drupal\webform\WebformTokenManagerInterface::elementValidate()
Validate form that should have tokens in it.
Parameters
array $form: A form.
array $token_types: An array containing token types that should be validated.
See also
token_element_validate()
1 method overrides WebformTokenManagerInterface::elementValidate()
- WebformTokenManager::elementValidate in src/
WebformTokenManager.php - Validate form that should have tokens in it.
File
- src/
WebformTokenManagerInterface.php, line 105
Class
- WebformTokenManagerInterface
- Defines an interface for token manager classes.
Namespace
Drupal\webformCode
public function elementValidate(array &$form, array $token_types = [
'webform',
'webform_submission',
'webform_handler',
]);