Skip to content
Snippets Groups Projects
Commit 99b3ac38 authored by Bernd Oliver Suenderhauf's avatar Bernd Oliver Suenderhauf
Browse files

Issue #3042911 by maliknaik: Remove token_tree BC layer

parent 7a9088a4
No related branches found
No related tags found
No related merge requests found
...@@ -23,15 +23,8 @@ class FillPdfAdminFormHelper implements FillPdfAdminFormHelperInterface { ...@@ -23,15 +23,8 @@ class FillPdfAdminFormHelper implements FillPdfAdminFormHelperInterface {
* {@inheritdoc} * {@inheritdoc}
*/ */
public function getAdminTokenForm() { public function getAdminTokenForm() {
if (function_exists('template_preprocess_token_tree')) {
$theme_function = 'token_tree';
}
else {
$theme_function = 'token_tree_link';
}
return [ return [
'#theme' => $theme_function, '#theme' => 'token_tree_link',
'#token_types' => 'all', '#token_types' => 'all',
'#global_types' => TRUE, '#global_types' => TRUE,
]; ];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment