public function WebformTokenManagerInterface::buildTreeElement in Webform 6.x
Same name and namespace in other branches
- 8.5 src/WebformTokenManagerInterface.php \Drupal\webform\WebformTokenManagerInterface::buildTreeElement()
Build token tree element if token.module is installed.
Parameters
array $token_types: 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.
1 method overrides WebformTokenManagerInterface::buildTreeElement()
- WebformTokenManager::buildTreeElement in src/
WebformTokenManager.php - Build token tree element if token.module is installed.
File
- src/
WebformTokenManagerInterface.php, line 93
Class
- WebformTokenManagerInterface
- Defines an interface for token manager classes.
Namespace
Drupal\webformCode
public function buildTreeElement(array $token_types = [
'webform',
'webform_submission',
], $description = NULL);