You are here

config.html.twig in Bamboo Twig 8.3

<div class="test-configs">


  <!-- Get Settings -->
  <h2>Settings</h2>
  <hr>
  <div class="config-settings">
    {{ bamboo_settings_get('hash_salt') }}
  </div>


  <!-- Get Config -->
  <h2>Config API</h2>
  <hr>
  <div class="config-system">
    {{ bamboo_config_get('system.site', 'mail') }}
  </div>

  <!-- Get State -->
  <h2>State API</h2>
  <hr>
  <div class="config-state">
    {{ bamboo_state_get('system.cron_last') }}
  </div>

</div>

File

tests/modules/bamboo_twig_test/templates/config.html.twig
View source
  1. <div class="test-configs">
  2. <!-- Get Settings -->
  3. <h2>Settings</h2>
  4. <hr>
  5. <div class="config-settings">
  6. {{ bamboo_settings_get('hash_salt') }}
  7. </div>
  8. <!-- Get Config -->
  9. <h2>Config API</h2>
  10. <hr>
  11. <div class="config-system">
  12. {{ bamboo_config_get('system.site', 'mail') }}
  13. </div>
  14. <!-- Get State -->
  15. <h2>State API</h2>
  16. <hr>
  17. <div class="config-state">
  18. {{ bamboo_state_get('system.cron_last') }}
  19. </div>
  20. </div>