my-banner.component.yml

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

File

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

View source
  1. $schema: https://git.drupalcode.org/project/sdc/-/raw/1.x/src/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. image:
  33. title: Media Image
  34. description: Background image for the banner.
  35. type: string
  36. slots:
  37. banner_body:
  38. title: Body
  39. description: The contents of the banner.
  40. examples:
  41. - <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.