public function TokenTreeBrowseController::outputLink in Token 8
Page callback to output a link.
1 string reference to 'TokenTreeBrowseController::outputLink'
- token_module_test.routing.yml in tests/
modules/ token_module_test/ token_module_test.routing.yml - tests/modules/token_module_test/token_module_test.routing.yml
File
- tests/
modules/ token_module_test/ src/ Controller/ TokenTreeBrowseController.php, line 44
Class
- TokenTreeBrowseController
- Controller for token module test.
Namespace
Drupal\token_module_test\ControllerCode
public function outputLink(Request $request) {
$build['tree']['#theme'] = 'token_tree_link';
$build['tokenarea'] = [
'#markup' => $this->token
->replace('[current-page:title]'),
'#type' => 'markup',
];
return $build;
}