my-banner.component.yml

Same filename in this branch
  1. 11.x core/modules/sdc/tests/modules/sdc_test/components/my-banner/my-banner.component.yml
Same filename and directory in other branches
  1. 10 core/modules/sdc/tests/modules/sdc_test/components/my-banner/my-banner.component.yml
  2. 10 core/modules/system/tests/modules/sdc_test/components/my-banner/my-banner.component.yml
core/modules/system/tests/modules/sdc_test/components/my-banner/my-banner.component.yml

File

core/modules/system/tests/modules/sdc_test/components/my-banner/my-banner.component.yml

View source
  1. $schema: https://git.drupalcode.org/project/drupal/-/raw/HEAD/core/assets/schemas/v1/metadata.schema.json
  2. name: Banner
  3. description: Banner with title and a CTA link
  4. libraryOverrides:
  5. dependencies:
  6. - core/drupal
  7. props:
  8. type: object
  9. properties:
  10. heading:
  11. title: Heading
  12. description: The title for the banner text.
  13. examples:
  14. - Join us at The Conference
  15. type: string
  16. ctaText:
  17. title: CTA Text
  18. type: string
  19. examples:
  20. - Click me!
  21. ctaHref:
  22. title: CTA Href
  23. type: string
  24. examples:
  25. - 'https://www.example.org'
  26. ctaTarget:
  27. title: CTA Target
  28. type: string
  29. enum:
  30. - ''
  31. - _blank
  32. meta:enum:
  33. '': 'Open in same window'
  34. _blank: 'Open in a new window'
  35. x-translation-context: Banner link target
  36. image:
  37. title: Media Image
  38. description: Background image for the banner.
  39. type: string
  40. slots:
  41. banner_body:
  42. title: Body
  43. description: The contents of the banner.
  44. examples:
  45. - <p>Foo is <strong>NOT</strong> bar.</p>

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