protected function RemotePostWebformHandler::buildTokenTreeElement in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Plugin/WebformHandler/RemotePostWebformHandler.php \Drupal\webform\Plugin\WebformHandler\RemotePostWebformHandler::buildTokenTreeElement()
Build token tree element.
Parameters
array $token_types: (optional) An array containing token types that should be shown in the tree.
string $description: (optional) Description to appear after the token tree link.
Return value
array A render array containing a token tree link wrapped in a div.
Overrides WebformHandlerBase::buildTokenTreeElement
File
- src/
Plugin/ WebformHandler/ RemotePostWebformHandler.php, line 1165
Class
- RemotePostWebformHandler
- Webform submission remote post handler.
Namespace
Drupal\webform\Plugin\WebformHandlerCode
protected function buildTokenTreeElement(array $token_types = [
'webform',
'webform_submission',
], $description = NULL) {
$description = $description ?: $this
->t('Use [webform_submission:values:ELEMENT_KEY:raw] to get plain text values.');
return parent::buildTokenTreeElement($token_types, $description);
}