You are here

public function WebformTokenManagerInterface::elementValidate in Webform 8.5

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

Code

public function elementValidate(array &$form, array $token_types = [
  'webform',
  'webform_submission',
  'webform_handler',
]);