message.component.yml

Same filename and directory in other branches
  1. main core/modules/navigation/components/message/message.component.yml
core/modules/navigation/components/message/message.component.yml

File

core/modules/navigation/components/message/message.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: Message
  5. # Status can be: "experimental", "stable", "deprecated", "obsolete".
  6. status: experimental
  7. # Schema for the props. We support www.json-schema.org. Learn more about the
  8. # syntax there.
  9. props:
  10. # Props are always an object with keys. Each key is a variable in your
  11. # component template.
  12. type: object
  13. properties:
  14. type:
  15. type: string
  16. title: Message Type
  17. default: status
  18. enum:
  19. - error
  20. - status
  21. - warning
  22. url:
  23. type: string
  24. title: Message URL
  25. format: iri-reference
  26. content:
  27. type: string
  28. title: Message Content

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