src/CmsBundle/Resources/views/blocks/framework_hero_slider.html.twig line 1

Open in your IDE?
  1. {#
  2.     {
  3.         "key": "framework_hero_slider",
  4.         "category": "Framework",
  5.         "label": "Hero (Slider)",
  6.         "description": "...",
  7.         "allowMove": false,
  8.         "blocks": [
  9.             {
  10.                 "key": "block-0",
  11.                 "size": 12,
  12.                 "required": "SliderBundle",
  13.                 "fields": []
  14.             }
  15.         ]
  16.     }
  17. #}
  18. {#
  19.     Available objects:
  20.     - page: current page
  21.     - locale: current locale
  22.     - wrapper: contains the wrapper around multiple blocks.
  23.     - firstBlock: contains the first block in the wrapper, useful when only one block is expected.
  24.     - data: contains the data as mentioned above this file
  25. #}
  26. <section
  27. class="hero hero-slider {{wrapper.classList}}"
  28. id="{{wrapper.cssId is defined ? wrapper.cssId : ''}}"
  29. style="{{wrapper.styleList}}"
  30. data-id="{{wrapper.id}}">
  31.     {{firstBlock.content|raw}}
  32. </section>