system.schema.yml

Same filename and directory in other branches
  1. 10 core/modules/system/config/schema/system.schema.yml
  2. 9 core/modules/system/config/schema/system.schema.yml
  3. 8.9.x core/modules/system/config/schema/system.schema.yml
core/modules/system/config/schema/system.schema.yml
2 string references to 'system.schema'
UpdateHookRegistry::__construct in core/lib/Drupal/Core/Update/UpdateHookRegistry.php
Constructs a new UpdateHookRegistry.
UpdateHookRegistryTest::setUp in core/tests/Drupal/Tests/Core/Update/UpdateHookRegistryTest.php

File

core/modules/system/config/schema/system.schema.yml

View source
  1. # Schema for the configuration files of the System module.
  2. system.site:
  3. type: config_object
  4. label: 'Site information'
  5. mapping:
  6. uuid:
  7. type: uuid
  8. label: 'Site UUID'
  9. constraints:
  10. Uuid: []
  11. NotNull: []
  12. name:
  13. type: label
  14. label: 'Site name'
  15. mail:
  16. type: email
  17. label: 'Email address'
  18. slogan:
  19. type: label
  20. label: 'Slogan'
  21. page:
  22. type: mapping
  23. label: 'Pages'
  24. mapping:
  25. 403:
  26. type: path
  27. label: 'Default 403 (access denied) page'
  28. 404:
  29. type: path
  30. label: 'Default 404 (not found) page'
  31. front:
  32. type: path
  33. label: 'Default front page'
  34. admin_compact_mode:
  35. type: boolean
  36. label: 'Compact mode'
  37. weight_select_max:
  38. type: integer
  39. label: 'Weight element maximum value'
  40. default_langcode:
  41. type: langcode
  42. label: 'Site default language code'
  43. mail_notification:
  44. type: string
  45. label: 'Notification email address'
  46. system.maintenance:
  47. type: config_object
  48. label: 'Maintenance mode'
  49. constraints:
  50. FullyValidatable: ~
  51. mapping:
  52. message:
  53. type: text
  54. label: 'Message to display when in maintenance mode'
  55. system.cron:
  56. type: config_object
  57. label: 'Cron settings'
  58. constraints:
  59. FullyValidatable: ~
  60. mapping:
  61. threshold:
  62. type: mapping
  63. label: 'Thresholds'
  64. mapping:
  65. requirements_warning:
  66. type: integer
  67. label: 'Requirements warning period'
  68. constraints:
  69. # @see \Drupal\system\Hook\SystemRequirementsHooks
  70. Range:
  71. min: 60
  72. requirements_error:
  73. type: integer
  74. label: 'Requirements error period'
  75. constraints:
  76. # @see \Drupal\system\Hook\SystemRequirementsHooks
  77. Range:
  78. min: 300
  79. logging:
  80. type: boolean
  81. label: 'Detailed cron logging'
  82. system.date:
  83. type: config_object
  84. label: 'Date settings'
  85. constraints:
  86. FullyValidatable: ~
  87. mapping:
  88. first_day:
  89. type: integer
  90. label: 'First day of week'
  91. constraints:
  92. Range:
  93. # @see \Drupal\system\Form\RegionalForm::buildForm()
  94. min: 0
  95. max: 6
  96. country:
  97. type: mapping
  98. label: 'Country'
  99. mapping:
  100. default:
  101. nullable: true
  102. type: string
  103. label: 'Default country'
  104. constraints:
  105. # @see \Drupal\system\Form\RegionalForm::buildForm()
  106. CountryCode: []
  107. timezone:
  108. type: mapping
  109. label: 'Time zone settings'
  110. mapping:
  111. default:
  112. type: string
  113. label: 'Default time zone'
  114. nullable: true
  115. constraints:
  116. # @see \Drupal\system\Form\RegionalForm::buildForm()
  117. Choice:
  118. callback: 'DateTimeZone::listIdentifiers'
  119. user:
  120. type: mapping
  121. label: 'User'
  122. mapping:
  123. configurable:
  124. type: boolean
  125. label: 'Users may set their own time zone'
  126. default:
  127. type: integer
  128. label: 'Time zone for new users'
  129. constraints:
  130. # Time zone for new users can have one of the following values:
  131. # - UserInterface::TIMEZONE_DEFAULT
  132. # - UserInterface::TIMEZONE_EMPTY
  133. # - UserInterface::TIMEZONE_SELECT
  134. # @see \Drupal\user\UserInterface::TIMEZONE_*
  135. # @todo Update this to use enum in https://www.drupal.org/project/drupal/issues/3402178
  136. Choice: [0, 1, 2]
  137. warn:
  138. type: boolean
  139. label: 'Remind users at login if their time zone is not set'
  140. system.diff:
  141. type: config_object
  142. label: 'Diff settings'
  143. constraints:
  144. FullyValidatable: ~
  145. mapping:
  146. context:
  147. type: mapping
  148. label: 'Context'
  149. mapping:
  150. lines_leading:
  151. type: integer
  152. label: 'Number of leading lines in a diff'
  153. constraints:
  154. # @see \Drupal\Component\Diff\DiffFormatter
  155. PositiveOrZero: ~
  156. lines_trailing:
  157. type: integer
  158. label: 'Number of trailing lines in a diff'
  159. constraints:
  160. # @see \Drupal\Component\Diff\DiffFormatter
  161. PositiveOrZero: ~
  162. system.logging:
  163. type: config_object
  164. label: 'Logging settings'
  165. constraints:
  166. FullyValidatable: ~
  167. mapping:
  168. error_level:
  169. type: string
  170. label: 'Error messages to display'
  171. # @see core/includes/bootstrap.inc
  172. # @todo Update this to use enum in https://www.drupal.org/project/drupal/issues/2951046
  173. constraints:
  174. Choice:
  175. choices:
  176. - 'hide'
  177. - 'some'
  178. - 'all'
  179. - 'verbose'
  180. system.performance:
  181. type: config_object
  182. label: 'Performance settings'
  183. mapping:
  184. cache:
  185. type: mapping
  186. label: 'Caching'
  187. mapping:
  188. page:
  189. type: mapping
  190. label: 'Page caching'
  191. mapping:
  192. max_age:
  193. type: integer
  194. label: 'Max age'
  195. css:
  196. type: mapping
  197. label: 'CSS performance settings'
  198. mapping:
  199. preprocess:
  200. type: boolean
  201. label: 'Aggregate CSS files'
  202. gzip:
  203. type: boolean
  204. label: 'Compress CSS files'
  205. fast_404:
  206. type: mapping
  207. label: 'Fast 404 settings'
  208. mapping:
  209. enabled:
  210. type: boolean
  211. label: 'Fast 404 enabled'
  212. paths:
  213. type: string
  214. label: 'Regular expression to match'
  215. exclude_paths:
  216. type: string
  217. label: 'Regular expression to not match'
  218. html:
  219. type: string
  220. label: 'Fast 404 page html'
  221. js:
  222. type: mapping
  223. label: 'JavaScript performance settings'
  224. mapping:
  225. preprocess:
  226. type: boolean
  227. label: 'JavaScript preprocess'
  228. gzip:
  229. type: boolean
  230. label: 'Compress JavaScript files.'
  231. system.rss:
  232. type: config_object
  233. label: 'Feed settings'
  234. mapping:
  235. items:
  236. type: mapping
  237. label: 'Feed items'
  238. mapping:
  239. view_mode:
  240. type: string
  241. label: 'Feed content'
  242. system.theme:
  243. type: config_object
  244. label: 'Theme settings'
  245. mapping:
  246. admin:
  247. type: string
  248. label: 'Administration theme'
  249. default:
  250. type: string
  251. label: 'Default theme'
  252. system.menu.*:
  253. type: config_entity
  254. label: 'Menu'
  255. mapping:
  256. id:
  257. type: machine_name
  258. label: 'ID'
  259. # Menu IDs are specifically limited to 32 characters, and allow dashes but not
  260. # underscores.
  261. # @see \Drupal\menu_ui\MenuForm::form()
  262. constraints:
  263. Regex:
  264. pattern: '/^[a-z0-9-]+$/'
  265. message: "The %value machine name is not valid."
  266. Length:
  267. max: 32
  268. label:
  269. type: required_label
  270. label: 'Label'
  271. description:
  272. type: label
  273. label: 'Menu description'
  274. # @see \Drupal\menu_ui\MenuForm::form()
  275. nullable: true
  276. constraints:
  277. Length:
  278. max: 512
  279. locked:
  280. type: boolean
  281. label: 'Locked'
  282. constraints:
  283. FullyValidatable: ~
  284. system.action.*:
  285. type: config_entity
  286. label: 'System action'
  287. constraints:
  288. FullyValidatable: ~
  289. mapping:
  290. id:
  291. type: machine_name
  292. label: 'ID'
  293. constraints:
  294. # Action IDs also allow periods.
  295. # @see user_user_role_insert()
  296. Regex:
  297. pattern: '/^[a-z0-9_\.]+$/'
  298. message: "The %value machine name is not valid."
  299. label:
  300. type: required_label
  301. label: 'Label'
  302. type:
  303. type: string
  304. label: 'Type'
  305. # Action can be specified without type.
  306. # @see \Drupal\action_test\Plugin\Action\NoType
  307. nullable: true
  308. constraints:
  309. NotBlank:
  310. allowNull: true
  311. plugin:
  312. type: string
  313. label: 'Plugin'
  314. constraints:
  315. PluginExists:
  316. manager: plugin.manager.action
  317. interface: 'Drupal\Core\Action\ActionInterface'
  318. configuration:
  319. type: action.configuration.[%parent.plugin]
  320. system.file:
  321. type: config_object
  322. label: 'File system'
  323. constraints:
  324. FullyValidatable: ~
  325. mapping:
  326. allow_insecure_uploads:
  327. type: boolean
  328. label: 'Allow insecure uploads'
  329. default_scheme:
  330. type: string
  331. label: 'Default download method'
  332. constraints:
  333. ClassResolver:
  334. classOrService: 'stream_wrapper_manager'
  335. method: 'isValidScheme'
  336. path:
  337. type: mapping
  338. label: 'Path settings'
  339. deprecated: "The 'path' config schema is deprecated in drupal:11.2.0 and will be removed from drupal 12.0.0. Use 'file_temp_path' key in settings.php instead. See https://www.drupal.org/node/3039255."
  340. temporary_maximum_age:
  341. type: integer
  342. label: 'Maximum age for temporary files'
  343. constraints:
  344. PositiveOrZero: ~
  345. system.image:
  346. type: config_object
  347. label: 'Image settings'
  348. constraints:
  349. FullyValidatable: ~
  350. mapping:
  351. toolkit:
  352. type: string
  353. label: 'Toolkit'
  354. constraints:
  355. PluginExists:
  356. manager: 'image.toolkit.manager'
  357. interface: '\Drupal\Core\ImageToolkit\ImageToolkitInterface'
  358. system.image.gd:
  359. type: config_object
  360. label: 'Image settings'
  361. constraints:
  362. FullyValidatable: ~
  363. mapping:
  364. jpeg_quality:
  365. type: integer
  366. label: 'JPEG quality'
  367. constraints:
  368. # @see \Drupal\system\Plugin\ImageToolkit\GDToolkit::buildConfigurationForm()
  369. Range:
  370. min: 0
  371. max: 100
  372. system.mail:
  373. type: config_object
  374. label: 'Mail system'
  375. constraints:
  376. FullyValidatable: ~
  377. mapping:
  378. interface:
  379. type: sequence
  380. label: 'Interfaces'
  381. sequence:
  382. type: string
  383. label: 'Interface'
  384. constraints:
  385. PluginExists:
  386. manager: plugin.manager.mail
  387. interface: 'Drupal\Core\Mail\MailInterface'
  388. mailer_dsn:
  389. type: mailer_dsn
  390. label: 'Symfony mailer transport DSN'
  391. system.theme.global:
  392. type: theme_settings
  393. label: 'Theme global settings'
  394. system.advisories:
  395. type: config_object
  396. label: 'Security advisory settings'
  397. constraints:
  398. FullyValidatable: ~
  399. mapping:
  400. enabled:
  401. type: boolean
  402. label: 'Display critical security advisories'
  403. interval_hours:
  404. type: integer
  405. label: 'How often to check for security advisories, in hours'
  406. # Minimum can be set to 0 as it just means the advisories will be retrieved on every call.
  407. # @see \Drupal\system\SecurityAdvisories\SecurityAdvisoriesFetcher::getSecurityAdvisories
  408. constraints:
  409. PositiveOrZero: ~
  410. block.settings.system_branding_block:
  411. type: block_settings
  412. label: 'Branding block'
  413. constraints:
  414. FullyValidatable: ~
  415. mapping:
  416. use_site_logo:
  417. type: boolean
  418. label: 'Use site logo'
  419. use_site_name:
  420. type: boolean
  421. label: 'Use site name'
  422. use_site_slogan:
  423. type: boolean
  424. label: 'Use site slogan'
  425. block.settings.system_menu_block:*:
  426. type: block_settings
  427. label: 'Menu block'
  428. constraints:
  429. FullyValidatable: ~
  430. mapping:
  431. level:
  432. type: integer
  433. label: 'Starting level'
  434. constraints:
  435. MenuLinkDepth:
  436. min: 0
  437. depth:
  438. type: integer
  439. label: 'Maximum number of levels'
  440. nullable: true
  441. constraints:
  442. MenuLinkDepth:
  443. baseLevel: '[%parent.level]'
  444. min: 1
  445. expand_all_items:
  446. type: boolean
  447. label: 'Expand all items'
  448. block.settings.local_tasks_block:
  449. type: block_settings
  450. label: 'Tabs block'
  451. constraints:
  452. FullyValidatable: ~
  453. mapping:
  454. primary:
  455. type: boolean
  456. label: 'Whether primary tabs are shown'
  457. secondary:
  458. type: boolean
  459. label: 'Whether secondary tabs are shown'
  460. condition.plugin.request_path:
  461. type: condition.plugin
  462. mapping:
  463. pages:
  464. type: string
  465. condition.plugin.response_status:
  466. type: condition.plugin
  467. mapping:
  468. status_codes:
  469. type: sequence
  470. sequence:
  471. type: integer
  472. system.feature_flags:
  473. type: config_object
  474. label: 'System Feature Flags'
  475. constraints:
  476. FullyValidatable: ~
  477. mapping:
  478. linkset_endpoint:
  479. type: boolean
  480. label: 'Enable the menu linkset endpoint'
  481. condition.plugin.current_theme:
  482. type: condition.plugin
  483. mapping:
  484. theme:
  485. type: string
  486. label: Theme

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