token.html.twig in Bamboo Twig 8.3
<div class="test-token">
<!-- Substitute Token -->
<h2>Substitute Token</h2>
<hr>
<div class="token-site">{{ bamboo_token('site:name') }}</div>
{% set article = bamboo_load_entity('node', 1) %}
<div class="token-node">{{ bamboo_token('node:title', {'node': article}) }}</div>
</div>
File
tests/modules/bamboo_twig_test/templates/token.html.twig
View source
- <div class="test-token">
-
- <!-- Substitute Token -->
- <h2>Substitute Token</h2>
- <hr>
- <div class="token-site">{{ bamboo_token('site:name') }}</div>
-
- {% set article = bamboo_load_entity('node', 1) %}
- <div class="token-node">{{ bamboo_token('node:title', {'node': article}) }}</div>
-
- </div>