advent_calendar-1.0.0-beta5/components/door/door.component.yml
components/door/door.component.yml
$schema: https://git.drupalcode.org/project/drupal/-/raw/10.1.x/core/modules/sdc/src/metadata.schema.json
name: Door
description: An Advent calendar door
libraryOverrides:
dependencies:
- core/drupal
- core/once
props:
type: object
required:
- calendar
- day
- title
properties:
calendar:
type: string
title: Calendar
description: A unique identifier for the Advent calendar
examples:
- "2023"
- "cal01"
day:
type: string
title: Day
description: The number of the day
examples:
- "1"
unlocked:
type: string
title: Unlocked
description: True if door may be opened.
title:
type: string
title: Title
description: The title of the item behind the door
examples:
- "An elf"
- "Pathauto module"
path:
type: string
title: Path
description: The path to the door's page.
door_image:
type: string
title: Door image
description: Path to the image behind the door.
door_closed_image:
type: string
title: Door closed image
description: Path to the image of blank closed door.
door_open_image:
type: string
title: Door open image
description: Path to the image of open door frame.
