You are here

configs.html.twig in Bamboo Twig 8

<div class="test-configs">

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

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

</div>

File

tests/bamboo_twig_test/templates/configs.html.twig
View source
  1. <div class="test-configs">
  2. <!-- Get Config -->
  3. <h2>Config API</h2>
  4. <hr>
  5. <div class="config-system">
  6. {{ get_config('system.site', 'mail') }}
  7. </div>
  8. <!-- Get State -->
  9. <h2>State API</h2>
  10. <hr>
  11. <div class="config-state">
  12. {{ get_state('system.cron_last') }}
  13. </div>
  14. </div>