my-cta.component.yml

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

File

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

View source
  1. $schema: https://git.drupalcode.org/project/drupal/-/raw/HEAD/core/assets/schemas/v1/metadata.schema.json
  2. name: Call to Action
  3. description: Call to action link.
  4. props:
  5. type: object
  6. required:
  7. - text
  8. properties:
  9. text:
  10. type: string
  11. title: Title
  12. description: The title for the cta
  13. examples:
  14. - Press
  15. - Submit now
  16. href:
  17. type: string
  18. title: URL
  19. format: uri
  20. examples:
  21. - https://drupal.org
  22. target:
  23. type: string
  24. title: Target
  25. description: The target for opening the link.
  26. enum:
  27. - ''
  28. - '_blank'
  29. meta:enum:
  30. '': 'Open in same window'
  31. _blank: 'Open in a new window'
  32. x-translation-context: CTA link target
  33. default: ''
  34. examples:
  35. - ''
  36. - '_blank'
  37. attributes:
  38. type: Drupal\Core\Template\Attribute
  39. name: Attributes
  40. variants:
  41. primary:
  42. title: Primary
  43. description: My primary variant
  44. secondary:
  45. title: Secondary
  46. description: My secondary variant
  47. tertiary:
  48. title: Tertiary
  49. description: My tertiary variant

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