function module_test_token_info
Implements hook_token_info().
File
-
core/
modules/ system/ tests/ modules/ module_test/ module_test.tokens.inc, line 13
Code
function module_test_token_info() : array {
$testToken = [];
$testToken['types']['token_info_invoked'] = [
'name' => 'tokens.inc test',
'description' => 'tokens.inc test',
];
$testToken['tokens']['token_info_invoked']['token_test_1'] = [
'type' => 'text',
'name' => 'tokens.inc test 1',
];
return $testToken;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.