artisan-1.x-dev/components/footer/footer.component.yml
components/footer/footer.component.yml
$schema: https://git.drupalcode.org/project/drupal/-/raw/HEAD/core/assets/schemas/v1/metadata.schema.json
name: Footer
slots:
top:
title: Footer Top Content
description: Content for the top section of the footer
examples:
- >
{% embed 'artisan:footer-top' with {
content: {
'#type': 'inline_template',
'#template': '{% include "artisan:nav" with {
attributes: create_attribute().addClass(["navbar-nav", "flex-row", "gap-4", "justify-content-center"]),
items: [
{ "url": "internal:/", "title": "Example Footer Top Link1" },
{ "url": "internal:/", "title": "Example Footer Top Link2" },
{ "url": "internal:/", "title": "Example Footer Top Link3" }
]
} only %}'
}
} only %}
{% endembed %}
content:
title: Footer Content
description: Content for the bottom section of the footer
examples:
- >
{% embed 'artisan:footer-bottom' with {
content: {
'#type': 'inline_template',
'#template': '{% include "artisan:nav" with {
attributes: create_attribute().addClass(["navbar-nav", "flex-row", "gap-4", "justify-content-center"]),
items: [
{ "url": "internal:/", "title": "Example Footer Bottom Link1" },
{ "url": "internal:/", "title": "Example Footer Bottom Link2" },
{ "url": "internal:/", "title": "Example Footer Bottom Link3" }
]
} only %}'
}
} only %}
{% endembed %}
props:
type: object
properties:
attributes:
type: Drupal\Core\Template\Attribute
title: Footer Attributes
description: Attributes for the footer element
examples:
- class: [' example-attributes-class ']
container_attributes:
type: Drupal\Core\Template\Attribute
title: Footer Attributes
description: Attributes for the footer element
examples:
- class: [' example-container-attributes-class ']
