teaser.component.yml

core/themes/olivero/components/teaser/teaser.component.yml

File

core/themes/olivero/components/teaser/teaser.component.yml

View source
  1. # This is so your IDE knows about the syntax for fixes and autocomplete.
  2. $schema: https://git.drupalcode.org/project/drupal/-/raw/HEAD/core/assets/schemas/v1/metadata.schema.json
  3. # The human readable name.
  4. name: Teaser
  5. # Status can be: "experimental", "stable", "deprecated", "obsolete".
  6. status: stable
  7. # Schema for the props. We support www.json-schema.org. Learn more about the
  8. # syntax there.
  9. props:
  10. type: object
  11. properties:
  12. attributes:
  13. type: Drupal\Core\Template\Attribute
  14. title: Attributes
  15. description: Wrapper attributes.
  16. # Slots always hold arbitrary markup. We know that beforehand, so no need for
  17. # a schema for slots.
  18. slots:
  19. # The key is the name of the slot. In your template you will use
  20. # {% block content %}.
  21. content:
  22. title: Content
  23. required: true
  24. description: The teaser content
  25. image:
  26. title: Image
  27. required: false
  28. description: Teaser image
  29. meta:
  30. title: Meta
  31. required: false
  32. description: Teaser meta
  33. prefix:
  34. title: Prefix
  35. required: false
  36. description: Contextual links slot
  37. title:
  38. title: Title content
  39. required: false
  40. description: Teaser title

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.