block--search-form-block.html.twig in Drupal 10
Same filename in this branch
- 10 core/themes/bartik/templates/block--search-form-block.html.twig
- 10 core/themes/starterkit_theme/templates/block/block--search-form-block.html.twig
- 10 core/themes/classy/templates/block/block--search-form-block.html.twig
- 10 core/themes/olivero/templates/block/block--search-form-block.html.twig
- 10 core/themes/claro/templates/classy/block/block--search-form-block.html.twig
- 10 core/themes/seven/templates/classy/block/block--search-form-block.html.twig
- 10 core/profiles/demo_umami/themes/umami/templates/components/search/block--search-form-block.html.twig
Same filename and directory in other branches
Olivero's theme implementation for a search form block. Based on Classy's search form block template.
Available variables:
- content: The content of this block.
- content_attributes: A list of HTML attributes applied to the main content tag that appears in the template.
File
core/themes/olivero/templates/block/block--search-form-block.html.twigView source
- {#
- /**
- * @file
- * Olivero's theme implementation for a search form block. Based on Classy's
- * search form block template.
- *
- * Available variables:
- * - content: The content of this block.
- * - content_attributes: A list of HTML attributes applied to the main content
- * tag that appears in the template.
- *
- * @see template_preprocess_block()
- * @see search_preprocess_block()
- *
- * @ingroup themeable
- */
- #}
- {%
- set classes = [
- 'block',
- 'block-search',
- ]
- %}
- <div{{ attributes.addClass(classes) }}>
- {{ title_prefix }}
- {% if label %}
- <h2{{ title_attributes }}>{{ label }}</h2>
- {% endif %}
- {{ title_suffix }}
- {% block content %}
- <div{{ content_attributes.addClass('content', 'container-inline') }}>
- {{ content }}
- </div>
- {% endblock %}
- </div>