You are here

core.data_types.schema.yml in Zircon Profile 8.0

Same filename and directory in other branches
  1. 8 core/config/schema/core.data_types.schema.yml
core/config/schema/core.data_types.schema.yml

File

core/config/schema/core.data_types.schema.yml
View source
  1. # Base types provided by Drupal core.
  2. # Read https://www.drupal.org/node/1905070 for more details about configuration
  3. # schema, types and type resolution.
  4. # Undefined type used by the system to assign to elements at any level where
  5. # configuration schema is not defined. Using explicitly has the same effect as
  6. # not defining schema, so there is no point in doing that.
  7. undefined:
  8. label: 'Undefined'
  9. class: '\Drupal\Core\Config\Schema\Undefined'
  10. # Explicit type to use when no data typing is possible. Instead of using this
  11. # type, we strongly suggest you use configuration structures that can be
  12. # described with other structural elements of schema, and describe your schema
  13. # with those elements.
  14. ignore:
  15. label: 'Ignore'
  16. class: '\Drupal\Core\Config\Schema\Ignore'
  17. # Basic scalar data types from typed data.
  18. boolean:
  19. label: 'Boolean'
  20. class: '\Drupal\Core\TypedData\Plugin\DataType\BooleanData'
  21. email:
  22. label: 'Email'
  23. class: '\Drupal\Core\TypedData\Plugin\DataType\Email'
  24. integer:
  25. label: 'Integer'
  26. class: '\Drupal\Core\TypedData\Plugin\DataType\IntegerData'
  27. float:
  28. label: 'Float'
  29. class: '\Drupal\Core\TypedData\Plugin\DataType\FloatData'
  30. string:
  31. label: 'String'
  32. class: '\Drupal\Core\TypedData\Plugin\DataType\StringData'
  33. uri:
  34. label: 'Uri'
  35. class: '\Drupal\Core\TypedData\Plugin\DataType\Uri'
  36. # Container data types for lists with known and unknown keys.
  37. mapping:
  38. label: Mapping
  39. class: '\Drupal\Core\Config\Schema\Mapping'
  40. definition_class: '\Drupal\Core\TypedData\MapDataDefinition'
  41. sequence:
  42. label: Sequence
  43. class: '\Drupal\Core\Config\Schema\Sequence'
  44. definition_class: '\Drupal\Core\TypedData\ListDataDefinition'
  45. # Simple extended data types:
  46. # Human readable string that must be plain text and editable with a text field.
  47. label:
  48. type: string
  49. label: 'Label'
  50. translatable: true
  51. # String containing plural variants, separated by EXT.
  52. plural_label:
  53. type: label
  54. label: 'Plural variants'
  55. # Internal Drupal path
  56. path:
  57. type: string
  58. label: 'Path'
  59. # Human readable string that can contain multiple lines of text or HTML.
  60. text:
  61. type: string
  62. label: 'Text'
  63. translatable: true
  64. # PHP Date format string that is translatable.
  65. date_format:
  66. type: string
  67. label: 'Date format'
  68. translatable: true
  69. translation context: 'PHP date format'
  70. # HTML color value.
  71. color_hex:
  72. type: string
  73. label: 'Color'
  74. # Complex extended data types:
  75. # Root of a configuration object.
  76. config_object:
  77. type: mapping
  78. mapping:
  79. langcode:
  80. type: string
  81. label: 'Language code'
  82. # Mail text with subject and body parts.
  83. mail:
  84. type: mapping
  85. label: 'Mail'
  86. mapping:
  87. subject:
  88. type: label
  89. label: 'Subject'
  90. body:
  91. type: text
  92. label: 'Body'
  93. # Filter with module and status.
  94. filter:
  95. type: mapping
  96. label: 'Filter'
  97. mapping:
  98. id:
  99. type: string
  100. label: 'ID'
  101. provider:
  102. type: string
  103. label: 'Provider'
  104. status:
  105. type: boolean
  106. label: 'Status'
  107. weight:
  108. type: integer
  109. label: 'Weight'
  110. settings:
  111. type: filter_settings.[%parent.id]
  112. # System action configuration base.
  113. action_configuration_default:
  114. type: sequence
  115. label: 'Action configuration'
  116. sequence:
  117. type: string
  118. theme_settings:
  119. type: config_object
  120. mapping:
  121. favicon:
  122. type: mapping
  123. label: 'Shortcut icon settings'
  124. mapping:
  125. mimetype:
  126. type: string
  127. label: 'MIME type'
  128. path:
  129. type: string
  130. label: 'Path'
  131. url:
  132. type: string
  133. label: 'URL'
  134. use_default:
  135. type: boolean
  136. label: 'Use the default shortcut icon supplied by the theme'
  137. features:
  138. type: mapping
  139. label: 'Optional features'
  140. mapping:
  141. comment_user_picture:
  142. type: boolean
  143. label: 'User pictures in comments'
  144. comment_user_verification:
  145. type: boolean
  146. label: 'User verification status in comments'
  147. favicon:
  148. type: boolean
  149. label: 'Shortcut icon'
  150. logo:
  151. type: boolean
  152. label: 'Logo'
  153. name:
  154. type: boolean
  155. label: 'Site name'
  156. node_user_picture:
  157. type: boolean
  158. label: 'User pictures in posts'
  159. slogan:
  160. type: boolean
  161. label: 'Site slogan'
  162. logo:
  163. type: mapping
  164. label: 'Logo settings'
  165. mapping:
  166. path:
  167. type: string
  168. label: 'Logo path'
  169. url:
  170. type: uri
  171. label: 'URL'
  172. use_default:
  173. type: boolean
  174. label: 'Use default'
  175. third_party_settings:
  176. type: sequence
  177. label: 'Third party settings'
  178. sequence:
  179. type: theme_settings.third_party.[%key]
  180. views_field_bulk_form:
  181. type: views_field
  182. label: 'Bulk operation'
  183. mapping:
  184. action_title:
  185. type: label
  186. label: 'Action title'
  187. include_exclude:
  188. type: string
  189. label: 'Available actions'
  190. selected_actions:
  191. type: sequence
  192. label: 'Available actions'
  193. sequence:
  194. type: string
  195. label: 'Action'
  196. # Array of routes with route_name and route_params keys.
  197. route:
  198. type: mapping
  199. label: 'Route'
  200. mapping:
  201. route_name:
  202. type: string
  203. label: 'Route Name'
  204. route_params:
  205. type: sequence
  206. label: 'Route Params'
  207. sequence:
  208. type: string
  209. label: 'Param'
  210. # Config dependencies.
  211. config_dependencies_base:
  212. type: mapping
  213. mapping:
  214. config:
  215. type: sequence
  216. label: 'Configuration entity dependencies'
  217. sequence:
  218. type: string
  219. content:
  220. type: sequence
  221. label: 'Content entity dependencies'
  222. sequence:
  223. type: string
  224. module:
  225. type: sequence
  226. label: 'Module dependencies'
  227. sequence:
  228. type: string
  229. theme:
  230. type: sequence
  231. label: 'Theme dependencies'
  232. sequence:
  233. type: string
  234. config_dependencies:
  235. type: config_dependencies_base
  236. label: 'Configuration dependencies'
  237. mapping:
  238. enforced:
  239. type: config_dependencies_base
  240. label: 'Enforced configuration dependencies'
  241. config_entity:
  242. type: mapping
  243. mapping:
  244. uuid:
  245. type: string
  246. label: 'UUID'
  247. langcode:
  248. type: string
  249. label: 'Language code'
  250. status:
  251. type: boolean
  252. label: 'Status'
  253. dependencies:
  254. type: config_dependencies
  255. label: 'Dependencies'
  256. third_party_settings:
  257. type: sequence
  258. label: 'Third party settings'
  259. sequence:
  260. type: '[%parent.%parent.%type].third_party.[%key]'
  261. block_settings:
  262. type: mapping
  263. label: 'Block settings'
  264. mapping:
  265. id:
  266. type: string
  267. label: 'ID'
  268. label:
  269. type: label
  270. label: 'Description'
  271. label_display:
  272. type: string
  273. label: 'Display title'
  274. status:
  275. type: boolean
  276. label: 'Status'
  277. info:
  278. type: label
  279. label: 'Admin info'
  280. view_mode:
  281. type: string
  282. label: 'View mode'
  283. provider:
  284. type: string
  285. label: 'Provider'
  286. context_mapping:
  287. type: sequence
  288. label: 'Context assignments'
  289. sequence:
  290. type: string
  291. condition.plugin:
  292. type: mapping
  293. label: 'Condition'
  294. mapping:
  295. id:
  296. type: string
  297. label: 'ID'
  298. negate:
  299. type: boolean
  300. label: 'Negate'
  301. uuid:
  302. type: string
  303. label: 'UUID'
  304. context_mapping:
  305. type: sequence
  306. label: 'Context assignments'
  307. sequence:
  308. type: string
  309. display_variant.plugin:
  310. type: mapping
  311. label: 'Display variant'
  312. mapping:
  313. id:
  314. type: string
  315. label: 'ID'
  316. label:
  317. type: label
  318. label: 'Label'
  319. weight:
  320. type: integer
  321. label: 'Weight'
  322. uuid:
  323. type: string
  324. label: 'UUID'
  325. base_entity_reference_field_settings:
  326. type: mapping
  327. mapping:
  328. target_type:
  329. type: string
  330. label: 'Type of item to reference'
  331. field_config_base:
  332. type: config_entity
  333. mapping:
  334. id:
  335. type: string
  336. label: 'ID'
  337. field_name:
  338. type: string
  339. label: 'Field name'
  340. entity_type:
  341. type: string
  342. label: 'Entity type'
  343. bundle:
  344. type: string
  345. label: 'Bundle'
  346. label:
  347. type: label
  348. label: 'Label'
  349. description:
  350. type: text
  351. label: 'Help text'
  352. required:
  353. type: boolean
  354. label: 'Required field'
  355. translatable:
  356. type: boolean
  357. label: 'Translatable'
  358. default_value:
  359. type: sequence
  360. label: 'Default values'
  361. sequence:
  362. type: field.value.[%parent.%parent.field_type]
  363. label: 'Default value'
  364. default_value_callback:
  365. type: string
  366. label: 'Default value callback'
  367. settings:
  368. type: field.field_settings.[%parent.field_type]
  369. field_type:
  370. type: string
  371. label: 'Field type'
  372. core.base_field_override.*.*.*:
  373. type: field_config_base
  374. label: 'Base field bundle override'
  375. core.date_format.*:
  376. type: config_entity
  377. label: 'Date format'
  378. mapping:
  379. id:
  380. type: string
  381. label: 'ID'
  382. label:
  383. type: label
  384. label: 'Label'
  385. locked:
  386. type: boolean
  387. label: 'Locked'
  388. pattern:
  389. type: core_date_format_pattern.[%parent.locked]
  390. label: 'PHP date format'
  391. # Unlocked date formats should use the translatable type.
  392. core_date_format_pattern.0:
  393. type: date_format
  394. label: 'Date format'
  395. # Locked date formats are just used to transport the value.
  396. core_date_format_pattern.1:
  397. type: string
  398. label: 'Date format'
  399. # Generic field settings schemas.
  400. field.storage_settings.*:
  401. type: mapping
  402. label: 'Settings'
  403. field.field_settings.*:
  404. type: mapping
  405. label: 'Settings'
  406. field.value.*:
  407. type: mapping
  408. label: 'Default value'
  409. # Schema for the configuration of the String field type.
  410. field.storage_settings.string:
  411. type: mapping
  412. label: 'String settings'
  413. mapping:
  414. max_length:
  415. type: integer
  416. label: 'Maximum length'
  417. case_sensitive:
  418. type: boolean
  419. label: 'Case sensitive'
  420. is_ascii:
  421. type: boolean
  422. label: 'Contains US ASCII characters only'
  423. field.field_settings.string:
  424. type: mapping
  425. label: 'String settings'
  426. field.value.string:
  427. type: mapping
  428. label: 'Default value'
  429. mapping:
  430. value:
  431. type: string
  432. label: 'Value'
  433. # Schema for the configuration of the String (long) field type.
  434. field.storage_settings.string_long:
  435. type: mapping
  436. label: 'String (long) settings'
  437. mapping:
  438. case_sensitive:
  439. type: boolean
  440. label: 'Case sensitive'
  441. field.field_settings.string_long:
  442. type: mapping
  443. label: 'String (long) settings'
  444. field.value.string_long:
  445. type: mapping
  446. label: 'Default value'
  447. mapping:
  448. value:
  449. type: text
  450. label: 'Value'
  451. # Schema for the configuration of the URI field type.
  452. field.storage_settings.uri:
  453. type: field.storage_settings.string
  454. label: 'URI settings'
  455. mapping:
  456. max_length:
  457. type: integer
  458. label: 'Maximum length'
  459. case_sensitive:
  460. type: boolean
  461. label: 'Case sensitive'
  462. field.field_settings.uri:
  463. type: mapping
  464. label: 'URI settings'
  465. field.value.uri:
  466. type: mapping
  467. label: 'Default value'
  468. mapping:
  469. value:
  470. type: string
  471. label: 'Value'
  472. # Schema for the configuration of the Created field type.
  473. field.storage_settings.created:
  474. type: mapping
  475. label: 'Created timestamp settings'
  476. field.field_settings.created:
  477. type: mapping
  478. label: 'Created timestamp settings'
  479. field.value.created:
  480. type: mapping
  481. label: 'Default value'
  482. mapping:
  483. value:
  484. type: integer
  485. label: 'Value'
  486. # Schema for the configuration of the Changed field type.
  487. field.storage_settings.changed:
  488. type: mapping
  489. label: 'Changed timestamp settings'
  490. field.field_settings.changed:
  491. type: mapping
  492. label: 'Changed timestamp settings'
  493. field.value.changed:
  494. type: mapping
  495. label: 'Default value'
  496. mapping:
  497. value:
  498. type: integer
  499. label: 'Value'
  500. # Schema for the configuration of the Entity reference field type.
  501. field.storage_settings.entity_reference:
  502. type: mapping
  503. label: 'Entity reference field storage settings'
  504. mapping:
  505. target_type:
  506. type: string
  507. label: 'Type of item to reference'
  508. field.field_settings.entity_reference:
  509. type: mapping
  510. label: 'Entity reference field settings'
  511. mapping:
  512. handler:
  513. type: string
  514. label: 'Reference method'
  515. handler_settings:
  516. type: entity_reference_selection.[%parent.handler]
  517. label: 'Entity reference selection plugin settings'
  518. field.value.entity_reference:
  519. type: mapping
  520. label: 'Default value'
  521. mapping:
  522. target_id:
  523. type: string
  524. label: 'Value'
  525. target_uuid:
  526. type: string
  527. label: 'Target UUID'
  528. # Schema for the configuration of the Boolean field type.
  529. field.field_settings.boolean:
  530. label: 'Boolean settings'
  531. type: mapping
  532. mapping:
  533. on_label:
  534. type: string
  535. label: 'On label'
  536. off_label:
  537. type: string
  538. label: 'Off label'
  539. field.value.boolean:
  540. type: mapping
  541. mapping:
  542. value:
  543. type: integer
  544. label: 'Value'
  545. # Schema for the configuration of the Email field type.
  546. field.storage_settings.email:
  547. type: mapping
  548. label: 'Email settings'
  549. field.field_settings.email:
  550. type: mapping
  551. label: 'Email settings'
  552. sequence:
  553. type: string
  554. label: 'Setting'
  555. field.value.email:
  556. type: mapping
  557. label: 'Default value'
  558. mapping:
  559. value:
  560. type: email
  561. label: 'Value'
  562. # Schema for the configuration of the Integer field type.
  563. field.storage_settings.integer:
  564. type: mapping
  565. label: 'Integer settings'
  566. mapping:
  567. unsigned:
  568. type: boolean
  569. label: 'Unsigned'
  570. size:
  571. type: string
  572. label: 'Database storage size'
  573. field.field_settings.integer:
  574. type: mapping
  575. label: 'Integer'
  576. mapping:
  577. min:
  578. type: integer
  579. label: 'Minimum'
  580. max:
  581. type: integer
  582. label: 'Maximum'
  583. prefix:
  584. type: label
  585. label: 'Prefix'
  586. suffix:
  587. type: label
  588. label: 'Suffix'
  589. field.value.integer:
  590. type: mapping
  591. label: 'Default value'
  592. mapping:
  593. value:
  594. type: integer
  595. label: 'Value'
  596. # Schema for the configuration of the Decimal field type.
  597. field.storage_settings.decimal:
  598. type: mapping
  599. label: 'Decimal settings'
  600. mapping:
  601. precision:
  602. type: integer
  603. label: 'Precision'
  604. scale:
  605. type: integer
  606. label: 'Scale'
  607. field.field_settings.decimal:
  608. type: mapping
  609. label: 'Decimal settings'
  610. mapping:
  611. min:
  612. type: float
  613. label: 'Minimum'
  614. max:
  615. type: float
  616. label: 'Maximum'
  617. prefix:
  618. type: label
  619. label: 'Prefix'
  620. suffix:
  621. type: label
  622. label: 'Suffix'
  623. field.value.decimal:
  624. type: mapping
  625. label: 'Default value'
  626. mapping:
  627. value:
  628. type: float
  629. label: 'Value'
  630. # Schema for the configuration of the Float field type.
  631. field.storage_settings.float:
  632. type: mapping
  633. label: 'Float settings'
  634. field.field_settings.float:
  635. type: mapping
  636. label: 'Float settings'
  637. mapping:
  638. min:
  639. type: float
  640. label: 'Minimum'
  641. max:
  642. type: float
  643. label: 'Maximum'
  644. prefix:
  645. type: label
  646. label: 'Prefix'
  647. suffix:
  648. type: label
  649. label: 'Suffix'
  650. field.value.float:
  651. type: mapping
  652. label: 'Default value'
  653. mapping:
  654. value:
  655. type: float
  656. label: 'Value'
  657. # Text with a text format.
  658. text_format:
  659. type: mapping
  660. label: 'Text with text format'
  661. # We declare the entire mapping of text and text format as translatable. This
  662. # causes the entire mapping to be saved to the language overrides of the
  663. # configuration. Storing only the (to be formatted) text could result in
  664. # security problems in case the text format of the source text is changed.
  665. translatable: true
  666. mapping:
  667. value:
  668. type: text
  669. label: 'Text'
  670. # Mark the actual text as translatable (in addition to the entire mapping
  671. # being marked as translatable) so that shipped configuration with
  672. # formatted text can participate in the string translation system.
  673. translatable: true
  674. format:
  675. type: string
  676. label: 'Text format'
  677. # The text format should not be translated as part of the string
  678. # translation system, so this is not marked as translatable.
  679. # Schema for the configuration of the Entity reference selection plugins.
  680. entity_reference_selection:
  681. type: mapping
  682. label: 'Entity reference selection plugin configuration'
  683. mapping:
  684. target_bundles:
  685. type: sequence
  686. label: 'types'
  687. nullable: true
  688. sequence:
  689. type: string
  690. label: 'Type'
  691. sort:
  692. type: mapping
  693. label: 'Sort settings'
  694. mapping:
  695. field:
  696. type: string
  697. label: 'Sort by'
  698. direction:
  699. type: string
  700. label: 'Sort direction'
  701. auto_create:
  702. type: boolean
  703. label: 'Create referenced entities if they don''t already exist'
  704. entity_reference_selection.*:
  705. type: entity_reference_selection