src/components/apps/extranet/extranet-search
// src/components/apps/extranet/extranet-search/schema.yaml
$schema: http://json-schema.org/draft-07/schema
$id: https://finstral.com/apps/extranet/extranet-search
type: object
required:
- breadcrumb
- index_name
- langcode
additionalProperties: false
properties:
breadcrumb:
type: array
items:
type: object
additionalProperties: false
required:
- text
properties:
text:
type: string
url:
type: string
format: uri-reference
index_name:
type: string
langcode:
type: string
// src/components/apps/extranet/extranet-search/mocks.yaml
$hidden: true
index_name: finstral_extranet_stage
langcode: en
$variants:
- $name: Full page
breadcrumb:
- text: Dashboard
url: /
- text: Extranet
url: /extranet
- text: Search
// src/components/apps/extranet/extranet-search/extranet-search.twig
{% set template_components_breadcrumb %}
{% include "@template-components/breadcrumb/breadcrumb.twig" with {
breadcrumb: breadcrumb
} only %}
{% endset %}
{% set app_extranet_search %}
{% include "@apps/extranet/extranet-search/app-extranet-search/app-extranet-search.twig" with {
index_name: index_name,
langcode: langcode,
} only %}
{% endset %}
{% include "@templates/cloud-content/cloud-content.twig" with {
breadcrumb: template_components_breadcrumb,
content: app_extranet_search,
} only %}