We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We can access the configuration and context bags in the context (YAML configuration) with using @=.
configuration
context
@=
Example:
twig_hooks: hooks: 'my_hook': template: 'my_template.html.twig' context: some_key: '@=_context.something'
It will retrieve the value of the something key from the context. The same applies for the _configuration.
something
_configuration
Sometimes, we might need to access the context or configuration bag in the configuration.
twig_hooks: hooks: 'my_hook': template: 'my_template.html.twig' configuration: attribute: 'channel-id': '@=_context.resource.id'
The goal of this issue is to reuse the logic behind the bags resolving while defining the context in the configuration declaration.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
We can access the
configuration
andcontext
bags in the context (YAML configuration) with using@=
.Example:
It will retrieve the value of the
something
key from the context. The same applies for the_configuration
.Sometimes, we might need to access the context or configuration bag in the configuration.
The goal of this issue is to reuse the logic behind the bags resolving while defining the context in the configuration declaration.
The text was updated successfully, but these errors were encountered: