You are here

flag.schema.yml in Flag 8.4

config/schema/flag.schema.yml

File

config/schema/flag.schema.yml
View source
  1. flag.flag.*:
  2. type: config_entity
  3. label: 'Flag'
  4. mapping:
  5. id:
  6. type: string
  7. label: 'Flag identifier'
  8. uuid:
  9. type: string
  10. label: 'UUID'
  11. label:
  12. type: label
  13. label: 'Name'
  14. bundles:
  15. type: sequence
  16. label: 'The entity bundles this flag applies to'
  17. sequence:
  18. - type: string
  19. entity_type:
  20. type: string
  21. label: 'Flaggable entity type'
  22. global:
  23. type: boolean
  24. label: 'Whether the flag is global'
  25. flag_short:
  26. type: label
  27. label: 'Flag link text'
  28. flag_long:
  29. type: label
  30. label: 'Flag link description text'
  31. flag_message:
  32. type: label
  33. label: 'Flag message'
  34. unflag_short:
  35. type: label
  36. label: 'Unflag link text'
  37. unflag_long:
  38. type: label
  39. label: 'Unflag link description text'
  40. unflag_message:
  41. type: label
  42. label: 'Unflag message'
  43. unflag_denied_text:
  44. type: label
  45. label: 'Unflag denied text'
  46. weight:
  47. type: integer
  48. label: 'Weight'
  49. flag_type:
  50. type: string
  51. label: 'ID of the Flag Type plugin'
  52. link_type:
  53. type: string
  54. label: 'ID of the Link Type plugin'
  55. flagTypeConfig:
  56. type: flag.flag_type.plugin.[%parent.flag_type]
  57. label: 'Flag type configuration'
  58. linkTypeConfig:
  59. type: flag.link_type.plugin.[%parent.link_type]
  60. label: 'Link type configuration'
  61. "flag.flag_type.plugin.entity:*":
  62. type: mapping
  63. label: 'Flag type for all entity types'
  64. mapping:
  65. show_in_links:
  66. type: sequence
  67. label: 'Show in links'
  68. sequence:
  69. type: string
  70. label: 'View mode'
  71. show_as_field:
  72. type: boolean
  73. label: 'Show as field'
  74. show_on_form:
  75. type: boolean
  76. label: 'Show on form'
  77. show_contextual_link:
  78. type: boolean
  79. label: 'Show contextual link'
  80. extra_permissions:
  81. type: sequence
  82. label: 'Extra permissions'
  83. sequence:
  84. type: string
  85. label: 'Extra permission option'
  86. flag.flag_type.plugin.entity:user:
  87. type: "flag.flag_type.plugin.entity:*"
  88. label: 'Flag type for user entities'
  89. mapping:
  90. show_on_profile:
  91. type: boolean
  92. label: 'Show on profile'
  93. flag.link_type.plugin.*:
  94. type: mapping
  95. label: 'Link type configuration'
  96. flag.link_type.plugin.confirm:
  97. type: mapping
  98. label: 'Confirm Form link type'
  99. mapping:
  100. flag_confirmation:
  101. type: label
  102. label: 'Flag confirmation'
  103. unflag_confirmation:
  104. type: label
  105. label: 'Unflag confirmation'
  106. flag_create_button:
  107. type: label
  108. label: 'Create flagging button text'
  109. flag_delete_button:
  110. type: label
  111. label: 'Delete flagging button text'
  112. flag_update_button:
  113. type: label
  114. label: 'Update flagging button text'
  115. form_behavior:
  116. type: string
  117. label: 'Where should the form open (new page, modal, etc)'
  118. flag.link_type.plugin.field_entry:
  119. type: mapping
  120. label: 'Field Entry link type'
  121. mapping:
  122. flag_confirmation:
  123. type: label
  124. label: 'Flag confirmation'
  125. edit_flagging:
  126. type: label
  127. label: 'Edit flagging'
  128. unflag_confirmation:
  129. type: label
  130. label: 'Unflag confirmation'
  131. flag_create_button:
  132. type: label
  133. label: 'Create flagging button text'
  134. flag_delete_button:
  135. type: label
  136. label: 'Delete flagging button text'
  137. flag_update_button:
  138. type: label
  139. label: 'Update flagging button text'
  140. form_behavior:
  141. type: string
  142. label: 'Where should the form open (new page, modal, etc)'
  143. action.configuration.flag_action:*:
  144. type: mapping
  145. label: 'Configuration for flag actions'
  146. mapping:
  147. flag_id:
  148. type: string
  149. label: 'The flag ID'
  150. flag_action:
  151. type: string
  152. label: 'Flag action (flag or unflag)'
  153. action.configuration.flag_delete_flagging:
  154. type: action_configuration_default
  155. label: 'Delete flagging entities'