my-cta.component.yml

Same filename in this branch
  1. 11.x core/modules/system/tests/modules/sdc_test/components/my-cta/my-cta.component.yml
Same filename 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/sdc/tests/modules/sdc_test/components/my-cta/my-cta.component.yml

File

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

View source
  1. $schema: https://git.drupalcode.org/project/sdc/-/raw/1.x/src/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. target:
  21. type: string
  22. title: Target
  23. enum:
  24. - ''
  25. - _blank
  26. attributes:
  27. type: Drupal\Core\Template\Attribute
  28. name: Attributes

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