system.schema.yml

Same filename in other branches
  1. 9 core/modules/system/config/schema/system.schema.yml
  2. 8.9.x core/modules/system/config/schema/system.schema.yml
  3. 10 core/modules/system/config/schema/system.schema.yml
core/modules/system/config/schema/system.schema.yml
3 string references to 'system.schema'
UpdateHookRegistry::__construct in core/lib/Drupal/Core/Update/UpdateHookRegistry.php
Constructs a new UpdateHookRegistry.
UpdateHookRegistryFactory::create in core/lib/Drupal/Core/Update/UpdateHookRegistryFactory.php
Creates a new UpdateHookRegistry instance.
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 system_requirements()
  70. Range:
  71. min: 60
  72. requirements_error:
  73. type: integer
  74. label: 'Requirements error period'
  75. constraints:
  76. # @see system_requirements()
  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. Range:
  156. min: 0
  157. lines_trailing:
  158. type: integer
  159. label: 'Number of trailing lines in a diff'
  160. constraints:
  161. # @see \Drupal\Component\Diff\DiffFormatter
  162. Range:
  163. min: 0
  164. system.logging:
  165. type: config_object
  166. label: 'Logging settings'
  167. constraints:
  168. FullyValidatable: ~
  169. mapping:
  170. error_level:
  171. type: string
  172. label: 'Error messages to display'
  173. # @see core/includes/bootstrap.inc
  174. # @todo Update this to use enum in https://www.drupal.org/project/drupal/issues/2951046
  175. constraints:
  176. Choice:
  177. choices:
  178. - 'hide'
  179. - 'some'
  180. - 'all'
  181. - 'verbose'
  182. system.performance:
  183. type: config_object
  184. label: 'Performance settings'
  185. mapping:
  186. cache:
  187. type: mapping
  188. label: 'Caching'
  189. mapping:
  190. page:
  191. type: mapping
  192. label: 'Page caching'
  193. mapping:
  194. max_age:
  195. type: integer
  196. label: 'Max age'
  197. css:
  198. type: mapping
  199. label: 'CSS performance settings'
  200. mapping:
  201. preprocess:
  202. type: boolean
  203. label: 'Aggregate CSS files'
  204. gzip:
  205. type: boolean
  206. label: 'Compress CSS files'
  207. fast_404:
  208. type: mapping
  209. label: 'Fast 404 settings'
  210. mapping:
  211. enabled:
  212. type: boolean
  213. label: 'Fast 404 enabled'
  214. paths:
  215. type: string
  216. label: 'Regular expression to match'
  217. exclude_paths:
  218. type: string
  219. label: 'Regular expression to not match'
  220. html:
  221. type: string
  222. label: 'Fast 404 page html'
  223. js:
  224. type: mapping
  225. label: 'JavaScript performance settings'
  226. mapping:
  227. preprocess:
  228. type: boolean
  229. label: 'JavaScript preprocess'
  230. gzip:
  231. type: boolean
  232. label: 'Compress JavaScript files.'
  233. system.rss:
  234. type: config_object
  235. label: 'Feed settings'
  236. mapping:
  237. items:
  238. type: mapping
  239. label: 'Feed items'
  240. mapping:
  241. view_mode:
  242. type: string
  243. label: 'Feed content'
  244. system.theme:
  245. type: config_object
  246. label: 'Theme settings'
  247. mapping:
  248. admin:
  249. type: string
  250. label: 'Administration theme'
  251. default:
  252. type: string
  253. label: 'Default theme'
  254. system.menu.*:
  255. type: config_entity
  256. label: 'Menu'
  257. mapping:
  258. id:
  259. type: machine_name
  260. label: 'ID'
  261. # Menu IDs are specifically limited to 32 characters, and allow dashes but not
  262. # underscores.
  263. # @see \Drupal\menu_ui\MenuForm::form()
  264. constraints:
  265. Regex:
  266. pattern: '/^[a-z0-9-]+$/'
  267. message: "The %value machine name is not valid."
  268. Length:
  269. max: 32
  270. label:
  271. type: required_label
  272. label: 'Label'
  273. description:
  274. type: label
  275. label: 'Menu description'
  276. # @see \Drupal\menu_ui\MenuForm::form()
  277. nullable: true
  278. constraints:
  279. Length:
  280. max: 512
  281. locked:
  282. type: boolean
  283. label: 'Locked'
  284. constraints:
  285. FullyValidatable: ~
  286. system.action.*:
  287. type: config_entity
  288. label: 'System action'
  289. constraints:
  290. FullyValidatable: ~
  291. mapping:
  292. id:
  293. type: machine_name
  294. label: 'ID'
  295. constraints:
  296. # Action IDs also allow periods.
  297. # @see user_user_role_insert()
  298. Regex:
  299. pattern: '/^[a-z0-9_\.]+$/'
  300. message: "The %value machine name is not valid."
  301. label:
  302. type: required_label
  303. label: 'Label'
  304. type:
  305. type: string
  306. label: 'Type'
  307. # Action can be specified without type.
  308. # @see \Drupal\action_test\Plugin\Action\NoType
  309. nullable: true
  310. constraints:
  311. NotBlank:
  312. allowNull: true
  313. plugin:
  314. type: string
  315. label: 'Plugin'
  316. constraints:
  317. PluginExists:
  318. manager: plugin.manager.action
  319. interface: 'Drupal\Core\Action\ActionInterface'
  320. configuration:
  321. type: action.configuration.[%parent.plugin]
  322. system.file:
  323. type: config_object
  324. label: 'File system'
  325. constraints:
  326. FullyValidatable: ~
  327. mapping:
  328. allow_insecure_uploads:
  329. type: boolean
  330. label: 'Allow insecure uploads'
  331. default_scheme:
  332. type: string
  333. label: 'Default download method'
  334. constraints:
  335. ClassResolver:
  336. classOrService: 'stream_wrapper_manager'
  337. method: 'isValidScheme'
  338. path:
  339. type: mapping
  340. label: 'Path settings'
  341. 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."
  342. temporary_maximum_age:
  343. type: integer
  344. label: 'Maximum age for temporary files'
  345. constraints:
  346. Range:
  347. min: 0
  348. system.image:
  349. type: config_object
  350. label: 'Image settings'
  351. constraints:
  352. FullyValidatable: ~
  353. mapping:
  354. toolkit:
  355. type: string
  356. label: 'Toolkit'
  357. constraints:
  358. PluginExists:
  359. manager: 'image.toolkit.manager'
  360. interface: '\Drupal\Core\ImageToolkit\ImageToolkitInterface'
  361. system.image.gd:
  362. type: config_object
  363. label: 'Image settings'
  364. constraints:
  365. FullyValidatable: ~
  366. mapping:
  367. jpeg_quality:
  368. type: integer
  369. label: 'JPEG quality'
  370. constraints:
  371. # @see \Drupal\system\Plugin\ImageToolkit\GDToolkit::buildConfigurationForm()
  372. Range:
  373. min: 0
  374. max: 100
  375. system.mail:
  376. type: config_object
  377. label: 'Mail system'
  378. constraints:
  379. FullyValidatable: ~
  380. mapping:
  381. interface:
  382. type: sequence
  383. label: 'Interfaces'
  384. sequence:
  385. type: string
  386. label: 'Interface'
  387. constraints:
  388. PluginExists:
  389. manager: plugin.manager.mail
  390. interface: 'Drupal\Core\Mail\MailInterface'
  391. mailer_dsn:
  392. type: mailer_dsn
  393. label: 'Symfony mailer transport DSN'
  394. system.theme.global:
  395. type: theme_settings
  396. label: 'Theme global settings'
  397. system.advisories:
  398. type: config_object
  399. label: 'Security advisory settings'
  400. constraints:
  401. FullyValidatable: ~
  402. mapping:
  403. enabled:
  404. type: boolean
  405. label: 'Display critical security advisories'
  406. interval_hours:
  407. type: integer
  408. label: 'How often to check for security advisories, in hours'
  409. # Minimum can be set to 0 as it just means the advisories will be retrieved on every call.
  410. # @see \Drupal\system\SecurityAdvisories\SecurityAdvisoriesFetcher::getSecurityAdvisories
  411. constraints:
  412. Range:
  413. min: 0
  414. block.settings.system_branding_block:
  415. type: block_settings
  416. label: 'Branding block'
  417. constraints:
  418. FullyValidatable: ~
  419. mapping:
  420. use_site_logo:
  421. type: boolean
  422. label: 'Use site logo'
  423. use_site_name:
  424. type: boolean
  425. label: 'Use site name'
  426. use_site_slogan:
  427. type: boolean
  428. label: 'Use site slogan'
  429. block.settings.system_menu_block:*:
  430. type: block_settings
  431. label: 'Menu block'
  432. mapping:
  433. level:
  434. type: integer
  435. label: 'Starting level'
  436. depth:
  437. type: integer
  438. label: 'Maximum number of levels'
  439. expand_all_items:
  440. type: boolean
  441. label: 'Expand all items'
  442. block.settings.local_tasks_block:
  443. type: block_settings
  444. label: 'Tabs block'
  445. constraints:
  446. FullyValidatable: ~
  447. mapping:
  448. primary:
  449. type: boolean
  450. label: 'Whether primary tabs are shown'
  451. secondary:
  452. type: boolean
  453. label: 'Whether secondary tabs are shown'
  454. condition.plugin.request_path:
  455. type: condition.plugin
  456. mapping:
  457. pages:
  458. type: string
  459. condition.plugin.response_status:
  460. type: condition.plugin
  461. mapping:
  462. status_codes:
  463. type: sequence
  464. sequence:
  465. type: integer
  466. system.feature_flags:
  467. type: config_object
  468. label: 'System Feature Flags'
  469. constraints:
  470. FullyValidatable: ~
  471. mapping:
  472. linkset_endpoint:
  473. type: boolean
  474. label: 'Enable the menu linkset endpoint'
  475. condition.plugin.current_theme:
  476. type: condition.plugin
  477. mapping:
  478. theme:
  479. type: string
  480. label: Theme

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