Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
eca-3386837
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
eca-3386837
Commits
8f7cf8a8
Commit
8f7cf8a8
authored
1 year ago
by
mxh
Committed by
Jürgen Haas
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Token/TokenDecoratorTrait.php
+1
-1
1 addition, 1 deletion
src/Token/TokenDecoratorTrait.php
with
1 addition
and
1 deletion
src/Token/TokenDecoratorTrait.php
+
1
−
1
View file @
8f7cf8a8
...
...
@@ -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_paren
t_class
(
$this
)
!==
get_class
(
$this
->
token
))
{
if
(
!
in_array
(
ge
t_class
(
$this
->
token
),
[
'Drupal\Core\Utility\Token'
,
'Drupal\token\Token'
],
TRUE
))
{
$text
=
$this
->
token
->
replace
(
$text
,
$data
,
$options
,
$bubbleable_metadata
);
}
return
$text
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment