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

Issue #3048054 by Pancho: Add special treatment for taxonomy token types

parent fb1076dc
No related branches found
No related tags found
No related merge requests found
...@@ -66,6 +66,12 @@ class FillPdfAdminFormHelper implements FillPdfAdminFormHelperInterface { ...@@ -66,6 +66,12 @@ class FillPdfAdminFormHelper implements FillPdfAdminFormHelperInterface {
* {@inheritdoc} * {@inheritdoc}
*/ */
public function getAdminTokenForm($token_types = 'all') { public function getAdminTokenForm($token_types = 'all') {
// Special treatment for Core's taxonomy_term and taxonomy_vocabulary.
if (is_array($token_types)) {
foreach ($token_types as $key => $type) {
$token_types[$key] = strtr($type, ['taxonomy_' => '']);
}
}
return [ return [
'#theme' => 'token_tree_link', '#theme' => 'token_tree_link',
'#token_types' => $token_types, '#token_types' => $token_types,
......
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