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. 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. path:
  333. type: mapping
  334. label: 'Path settings'
  335. temporary_maximum_age:
  336. type: integer
  337. label: 'Maximum age for temporary files'
  338. system.image:
  339. type: config_object
  340. label: 'Image settings'
  341. constraints:
  342. FullyValidatable: ~
  343. mapping:
  344. toolkit:
  345. type: string
  346. label: 'Toolkit'
  347. constraints:
  348. PluginExists:
  349. manager: 'image.toolkit.manager'
  350. interface: '\Drupal\Core\ImageToolkit\ImageToolkitInterface'
  351. system.image.gd:
  352. type: config_object
  353. label: 'Image settings'
  354. constraints:
  355. FullyValidatable: ~
  356. mapping:
  357. jpeg_quality:
  358. type: integer
  359. label: 'JPEG quality'
  360. constraints:
  361. # @see \Drupal\system\Plugin\ImageToolkit\GDToolkit::buildConfigurationForm()
  362. Range:
  363. min: 0
  364. max: 100
  365. system.mail:
  366. type: config_object
  367. label: 'Mail system'
  368. constraints:
  369. FullyValidatable: ~
  370. mapping:
  371. interface:
  372. type: sequence
  373. label: 'Interfaces'
  374. sequence:
  375. type: string
  376. label: 'Interface'
  377. constraints:
  378. PluginExists:
  379. manager: plugin.manager.mail
  380. interface: 'Drupal\Core\Mail\MailInterface'
  381. mailer_dsn:
  382. type: mailer_dsn
  383. label: 'Symfony mailer transport DSN'
  384. system.theme.global:
  385. type: theme_settings
  386. label: 'Theme global settings'
  387. system.advisories:
  388. type: config_object
  389. label: 'Security advisory settings'
  390. constraints:
  391. FullyValidatable: ~
  392. mapping:
  393. enabled:
  394. type: boolean
  395. label: 'Display critical security advisories'
  396. interval_hours:
  397. type: integer
  398. label: 'How often to check for security advisories, in hours'
  399. # Minimum can be set to 0 as it just means the advisories will be retrieved on every call.
  400. # @see \Drupal\system\SecurityAdvisories\SecurityAdvisoriesFetcher::getSecurityAdvisories
  401. constraints:
  402. Range:
  403. min: 0
  404. block.settings.system_branding_block:
  405. type: block_settings
  406. label: 'Branding block'
  407. constraints:
  408. FullyValidatable: ~
  409. mapping:
  410. use_site_logo:
  411. type: boolean
  412. label: 'Use site logo'
  413. use_site_name:
  414. type: boolean
  415. label: 'Use site name'
  416. use_site_slogan:
  417. type: boolean
  418. label: 'Use site slogan'
  419. block.settings.system_menu_block:*:
  420. type: block_settings
  421. label: 'Menu block'
  422. mapping:
  423. level:
  424. type: integer
  425. label: 'Starting level'
  426. depth:
  427. type: integer
  428. label: 'Maximum number of levels'
  429. expand_all_items:
  430. type: boolean
  431. label: 'Expand all items'
  432. block.settings.local_tasks_block:
  433. type: block_settings
  434. label: 'Tabs block'
  435. constraints:
  436. FullyValidatable: ~
  437. mapping:
  438. primary:
  439. type: boolean
  440. label: 'Whether primary tabs are shown'
  441. secondary:
  442. type: boolean
  443. label: 'Whether secondary tabs are shown'
  444. condition.plugin.request_path:
  445. type: condition.plugin
  446. mapping:
  447. pages:
  448. type: string
  449. condition.plugin.response_status:
  450. type: condition.plugin
  451. mapping:
  452. status_codes:
  453. type: sequence
  454. sequence:
  455. type: integer
  456. system.feature_flags:
  457. type: config_object
  458. label: 'System Feature Flags'
  459. constraints:
  460. FullyValidatable: ~
  461. mapping:
  462. linkset_endpoint:
  463. type: boolean
  464. label: 'Enable the menu linkset endpoint'
  465. condition.plugin.current_theme:
  466. type: condition.plugin
  467. mapping:
  468. theme:
  469. type: string
  470. label: Theme

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