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

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

parent 07411880
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,8 @@ interface FillPdfAdminFormHelperInterface {
* Returns render array for a link to a token tree shown as a dialog.
*
* @param string[]|string $token_types
* (optional) Array of token types. Defaults to 'all'.
* (optional) Array of token types. Defaults to 'all'. Note that it's the
* caller's duty to translate entity types into token types.
*
* @return array
* Render array.
......
......@@ -67,12 +67,6 @@ class FillPdfAdminFormHelper implements FillPdfAdminFormHelperInterface {
* {@inheritdoc}
*/
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 [
'#theme' => 'token_tree_link',
'#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