banner.component.yml

Same filename in other branches
  1. 11.x core/profiles/demo_umami/themes/umami/components/banner/banner.component.yml
core/profiles/demo_umami/themes/umami/components/banner/banner.component.yml

File

core/profiles/demo_umami/themes/umami/components/banner/banner.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: Banner
  5. # Status can be: "experimental", "stable", "deprecated", "obsolete".
  6. status: experimental
  7. props:
  8. # Props are always an object with keys. Each key is a variable in your
  9. # component template.
  10. type: object
  11. properties:
  12. attributes:
  13. type: Drupal\Core\Template\Attribute
  14. title: Attributes
  15. description: Banner 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. # A human-readable name.
  23. title: Content
  24. # A description.
  25. description: This is the banner content
  26. image:
  27. # A human-readable name.
  28. title: Image
  29. # A description.
  30. description: This is the banner image

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