You are here

protected function WebformHandlerBase::elementTokenValidate in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/Plugin/WebformHandlerBase.php \Drupal\webform\Plugin\WebformHandlerBase::elementTokenValidate()

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()

4 calls to WebformHandlerBase::elementTokenValidate()
ActionWebformHandler::buildConfigurationForm in src/Plugin/WebformHandler/ActionWebformHandler.php
Form constructor.
EmailWebformHandler::buildConfigurationForm in src/Plugin/WebformHandler/EmailWebformHandler.php
Form constructor.
RemotePostWebformHandler::buildConfigurationForm in src/Plugin/WebformHandler/RemotePostWebformHandler.php
Form constructor.
SettingsWebformHandler::buildConfigurationForm in src/Plugin/WebformHandler/SettingsWebformHandler.php
Form constructor.

File

src/Plugin/WebformHandlerBase.php, line 775

Class

WebformHandlerBase
Provides a base class for a webform handler.

Namespace

Drupal\webform\Plugin

Code

protected function elementTokenValidate(array &$form, array $token_types = [
  'webform',
  'webform_submission',
  'webform_handler',
]) {
  return $this->tokenManager
    ->elementValidate($form, $token_types);
}