You are here

render.html.twig in Bamboo Twig 8.2

<div class="test-render">

  <!-- Render Block -->
  <h2>Render Block</h2>
  <hr>
  <div class="render-block">{{ bamboo_render_block('system_powered_by_block') }}</div>

  <!-- Render Region -->
  <h2>Render Region</h2>
  <hr>
  <div class="render-region">{{ bamboo_render_region('sidebar_first') }}</div>

  <!-- Render Entity -->
  <h2>Render Entity</h2>
  <hr>
  <div class="render-entity-node">{{ bamboo_render_entity('node', 1) }}</div>
  <div class="render-entity-node-teaser">{{ bamboo_render_entity('node', 1, 'teaser') }}</div>
  <div class="render-entity-taxonomy-term">{{ bamboo_render_entity('taxonomy_term', 1) }}</div>
  <div class="render-entity-taxonomy-term-link">{{ bamboo_render_entity('taxonomy_term', 1, 'link') }}</div>
  <div class="render-entity-user">{{ bamboo_render_entity('user', 1) }}</div>
  <div class="render-entity-user-compact">{{ bamboo_render_entity('user', 1, 'compact') }}</div>

  <!-- Render Image -->
  <h2>Render Image</h2>
  <hr>
  <div class="render-image">{{ bamboo_render_image(1, 'thumbnail') }}</div>
  <div class="render-image-style-uri">style-uri-{{ bamboo_render_image_style('public://antistatique.jpg', 'thumbnail') }}</div>
  <div class="render-image-style-uri-preprocess">style-uri-preprocess-{{ bamboo_render_image_style('public://antistatique.jpg', 'thumbnail', TRUE) }}</div>

  <!-- Render Field -->
  <h2>Render Field</h2>
  <hr>
  <div class="render-field-node">{{ bamboo_render_field('title', 'node', 1) }}</div>
  <div class="render-field-taxonomy-term">{{ bamboo_render_field('name', 'taxonomy_term', 1) }}</div>
  <div class="render-field-file">{{ bamboo_render_field('filename', 'file', 1) }}</div>
  <div class="render-field-user">{{ bamboo_render_field('name', 'user', 1) }}</div>

  <!-- Render Menu -->
  <h2>Render Menu</h2>
  <hr>
  <div class="render-menu-no-access">{{ bamboo_render_menu('admin') }}</div>
  <div class="render-menu-all">{{ bamboo_render_menu('admin') }}</div>
  <div class="render-menu-level">{{ bamboo_render_menu('admin', 2) }}</div>
  <div class="render-menu-depth">{{ bamboo_render_menu('admin', 1, 2) }}</div>

  <!-- Render Form -->
  <h2>Render Form</h2>
  <hr>
  <div class="render-form">{{ bamboo_render_form('system', 'CronForm') }}</div>
</div>

File

tests/modules/bamboo_twig_test/templates/render.html.twig
View source
  1. <div class="test-render">
  2. <!-- Render Block -->
  3. <h2>Render Block</h2>
  4. <hr>
  5. <div class="render-block">{{ bamboo_render_block('system_powered_by_block') }}</div>
  6. <!-- Render Region -->
  7. <h2>Render Region</h2>
  8. <hr>
  9. <div class="render-region">{{ bamboo_render_region('sidebar_first') }}</div>
  10. <!-- Render Entity -->
  11. <h2>Render Entity</h2>
  12. <hr>
  13. <div class="render-entity-node">{{ bamboo_render_entity('node', 1) }}</div>
  14. <div class="render-entity-node-teaser">{{ bamboo_render_entity('node', 1, 'teaser') }}</div>
  15. <div class="render-entity-taxonomy-term">{{ bamboo_render_entity('taxonomy_term', 1) }}</div>
  16. <div class="render-entity-taxonomy-term-link">{{ bamboo_render_entity('taxonomy_term', 1, 'link') }}</div>
  17. <div class="render-entity-user">{{ bamboo_render_entity('user', 1) }}</div>
  18. <div class="render-entity-user-compact">{{ bamboo_render_entity('user', 1, 'compact') }}</div>
  19. <!-- Render Image -->
  20. <h2>Render Image</h2>
  21. <hr>
  22. <div class="render-image">{{ bamboo_render_image(1, 'thumbnail') }}</div>
  23. <div class="render-image-style-uri">style-uri-{{ bamboo_render_image_style('public://antistatique.jpg', 'thumbnail') }}</div>
  24. <div class="render-image-style-uri-preprocess">style-uri-preprocess-{{ bamboo_render_image_style('public://antistatique.jpg', 'thumbnail', TRUE) }}</div>
  25. <!-- Render Field -->
  26. <h2>Render Field</h2>
  27. <hr>
  28. <div class="render-field-node">{{ bamboo_render_field('title', 'node', 1) }}</div>
  29. <div class="render-field-taxonomy-term">{{ bamboo_render_field('name', 'taxonomy_term', 1) }}</div>
  30. <div class="render-field-file">{{ bamboo_render_field('filename', 'file', 1) }}</div>
  31. <div class="render-field-user">{{ bamboo_render_field('name', 'user', 1) }}</div>
  32. <!-- Render Menu -->
  33. <h2>Render Menu</h2>
  34. <hr>
  35. <div class="render-menu-no-access">{{ bamboo_render_menu('admin') }}</div>
  36. <div class="render-menu-all">{{ bamboo_render_menu('admin') }}</div>
  37. <div class="render-menu-level">{{ bamboo_render_menu('admin', 2) }}</div>
  38. <div class="render-menu-depth">{{ bamboo_render_menu('admin', 1, 2) }}</div>
  39. <!-- Render Form -->
  40. <h2>Render Form</h2>
  41. <hr>
  42. <div class="render-form">{{ bamboo_render_form('system', 'CronForm') }}</div>
  43. </div>