You are here

search-by-page-form.html.twig in Search by Page 8

Default theme implementation for Search by Page search form.

Available variables:

  • $search_form: The complete search form ready for print.
  • $search: Array of keyed search elements. Can be used to print each form element separately. This contains optional elements that may be added by other modules, and the following default elements:

    • $search['keys']: Text input field for search keywords.
    • $search['submit']: Form submit button.
    • $search['hidden']: Hidden form elements. Used to validate forms when submitted.
  • $environment: The ID number of the search environment.
  • $is_block: TRUE if the form is in the block, FALSE if in the page body.

File

templates/search-by-page-form.html.twig
View source
  1. <?php
  2. /**
  3. * @file
  4. * Default theme implementation for Search by Page search form.
  5. *
  6. * Available variables:
  7. * - $search_form: The complete search form ready for print.
  8. * - $search: Array of keyed search elements. Can be used to print each form
  9. * element separately. This contains optional elements that may be added by
  10. * other modules, and the following default elements:
  11. * - $search['keys']: Text input field for search keywords.
  12. * - $search['submit']: Form submit button.
  13. * - $search['hidden']: Hidden form elements. Used to validate forms when
  14. * submitted.
  15. * - $environment: The ID number of the search environment.
  16. * - $is_block: TRUE if the form is in the block, FALSE if in the page body.
  17. *
  18. * @see template_preprocess_search_by_page_form()
  19. */
  20. ?>
  21. <div class="container">
  22. {{ search_form }}
  23. </div>