Skip to content
Snippets Groups Projects
Commit 8f7cf8a8 authored by mxh's avatar mxh Committed by Jürgen Haas
Browse files

Issue #3347155 by mxh: eca_base: Provide a mechanic to recursively replace tokens

parent 99f93756
No related branches found
No related tags found
No related merge requests found
......@@ -337,7 +337,7 @@ trait TokenDecoratorTrait {
// or from the Contrib token service (if available). Just in case we
// actually received a decorated service that differs from these two
// implementation variants, give it a chance to execute its own logic.
if (get_parent_class($this) !== get_class($this->token)) {
if (!in_array(get_class($this->token), ['Drupal\Core\Utility\Token', 'Drupal\token\Token'], TRUE)) {
$text = $this->token->replace($text, $data, $options, $bubbleable_metadata);
}
return $text;
......
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