Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ECA Guide
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Drupal
Documentation
ECA Guide
Commits
908512c3
Commit
908512c3
authored
1 year ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Document more tokens that get provided by events
parent
d975a34a
No related branches found
No related tags found
1 merge request
!80
Development
Pipeline
#953626
passed
1 year ago
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/eca/concepts/tokens.md
+9
-0
9 additions, 0 deletions
docs/eca/concepts/tokens.md
with
9 additions
and
0 deletions
docs/eca/concepts/tokens.md
+
9
−
0
View file @
908512c3
...
...
@@ -54,10 +54,19 @@ Most events implicitly provide some tokens under pre-defined names.
and the user needs to find such tokens either in support channels, in the code or by using the debugging techniques
described in the [Debugging](/eca/debugging) section.
The tokens
`user`
and
`current_user`
are always available, they contain the current user entity of the request that
triggered the event.
When an entity related event gets triggered, e.g.
[
Presave content entity
](
/plugins/eca/content/events/content_entity_presave
)
, then ECA automatically puts the related
entity onto the token stack with the name
`entity`
and also under the name of the entity type, e.g.
`node`
,
`user`
, etc.
When a form related event gets triggered, e.g.
[
Build form
](
/plugins/eca/form/events/form_form_build
)
, then ECA automatically puts the related form onto the token
stack with the names
`form`
and
`current_form`
.
Others will be documented as soon as the above feature got implemented.
### Tokens declared by actions
Most action plugins make their result available as a token, and their configuration form allows you to define the token
...
...
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