system.schema.yml

Same filename and directory 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
2 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.

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. mapping:
  168. error_level:
  169. type: string
  170. label: 'Error messages to display'
  171. system.performance:
  172. type: config_object
  173. label: 'Performance settings'
  174. mapping:
  175. cache:
  176. type: mapping
  177. label: 'Caching'
  178. mapping:
  179. page:
  180. type: mapping
  181. label: 'Page caching'
  182. mapping:
  183. max_age:
  184. type: integer
  185. label: 'Max age'
  186. css:
  187. type: mapping
  188. label: 'CSS performance settings'
  189. mapping:
  190. preprocess:
  191. type: boolean
  192. label: 'Aggregate CSS files'
  193. gzip:
  194. type: boolean
  195. label: 'Compress CSS files'
  196. fast_404:
  197. type: mapping
  198. label: 'Fast 404 settings'
  199. mapping:
  200. enabled:
  201. type: boolean
  202. label: 'Fast 404 enabled'
  203. paths:
  204. type: string
  205. label: 'Regular expression to match'
  206. exclude_paths:
  207. type: string
  208. label: 'Regular expression to not match'
  209. html:
  210. type: string
  211. label: 'Fast 404 page html'
  212. js:
  213. type: mapping
  214. label: 'JavaScript performance settings'
  215. mapping:
  216. preprocess:
  217. type: boolean
  218. label: 'JavaScript preprocess'
  219. gzip:
  220. type: boolean
  221. label: 'Compress JavaScript files.'
  222. system.rss:
  223. type: config_object
  224. label: 'Feed settings'
  225. mapping:
  226. items:
  227. type: mapping
  228. label: 'Feed items'
  229. mapping:
  230. view_mode:
  231. type: string
  232. label: 'Feed content'
  233. system.theme:
  234. type: config_object
  235. label: 'Theme settings'
  236. mapping:
  237. admin:
  238. type: string
  239. label: 'Administration theme'
  240. default:
  241. type: string
  242. label: 'Default theme'
  243. system.menu.*:
  244. type: config_entity
  245. label: 'Menu'
  246. mapping:
  247. id:
  248. type: machine_name
  249. label: 'ID'
  250. # Menu IDs are specifically limited to 32 characters, and allow dashes but not
  251. # underscores.
  252. # @see \Drupal\menu_ui\MenuForm::form()
  253. constraints:
  254. Regex:
  255. pattern: '/^[a-z0-9-]+$/'
  256. message: "The %value machine name is not valid."
  257. Length:
  258. max: 32
  259. label:
  260. type: required_label
  261. label: 'Label'
  262. description:
  263. type: label
  264. label: 'Menu description'
  265. # @see \Drupal\menu_ui\MenuForm::form()
  266. nullable: true
  267. constraints:
  268. Length:
  269. max: 512
  270. locked:
  271. type: boolean
  272. label: 'Locked'
  273. constraints:
  274. FullyValidatable: ~
  275. system.action.*:
  276. type: config_entity
  277. label: 'System action'
  278. mapping:
  279. id:
  280. type: machine_name
  281. label: 'ID'
  282. constraints:
  283. # Action IDs also allow periods.
  284. # @see user_user_role_insert()
  285. Regex:
  286. pattern: '/^[a-z0-9_\.]+$/'
  287. message: "The %value machine name is not valid."
  288. label:
  289. type: required_label
  290. label: 'Label'
  291. type:
  292. type: string
  293. label: 'Type'
  294. plugin:
  295. type: string
  296. label: 'Plugin'
  297. constraints:
  298. PluginExists:
  299. manager: plugin.manager.action
  300. interface: 'Drupal\Core\Action\ActionInterface'
  301. configuration:
  302. type: action.configuration.[%parent.plugin]
  303. system.file:
  304. type: config_object
  305. label: 'File system'
  306. mapping:
  307. allow_insecure_uploads:
  308. type: boolean
  309. label: 'Allow insecure uploads'
  310. default_scheme:
  311. type: string
  312. label: 'Default download method'
  313. path:
  314. type: mapping
  315. label: 'Path settings'
  316. temporary_maximum_age:
  317. type: integer
  318. label: 'Maximum age for temporary files'
  319. system.image:
  320. type: config_object
  321. label: 'Image settings'
  322. constraints:
  323. FullyValidatable: ~
  324. mapping:
  325. toolkit:
  326. type: string
  327. label: 'Toolkit'
  328. constraints:
  329. PluginExists:
  330. manager: 'image.toolkit.manager'
  331. interface: '\Drupal\Core\ImageToolkit\ImageToolkitInterface'
  332. system.image.gd:
  333. type: config_object
  334. label: 'Image settings'
  335. constraints:
  336. FullyValidatable: ~
  337. mapping:
  338. jpeg_quality:
  339. type: integer
  340. label: 'JPEG quality'
  341. constraints:
  342. # @see \Drupal\system\Plugin\ImageToolkit\GDToolkit::buildConfigurationForm()
  343. Range:
  344. min: 0
  345. max: 100
  346. system.mail:
  347. type: config_object
  348. label: 'Mail system'
  349. mapping:
  350. interface:
  351. type: sequence
  352. label: 'Interfaces'
  353. sequence:
  354. type: string
  355. label: 'Interface'
  356. constraints:
  357. PluginExists:
  358. manager: plugin.manager.mail
  359. interface: 'Drupal\Core\Mail\MailInterface'
  360. mailer_dsn:
  361. type: mapping
  362. label: 'Symfony mailer transport DSN'
  363. mapping:
  364. scheme:
  365. type: string
  366. label: 'Scheme'
  367. constraints:
  368. NotBlank:
  369. message: 'The mailer DSN must contain a scheme.'
  370. host:
  371. type: string
  372. label: 'Host'
  373. constraints:
  374. NotBlank:
  375. message: 'The mailer DSN must contain a host (use "default" by default).'
  376. user:
  377. type: string
  378. nullable: true
  379. label: 'User'
  380. password:
  381. type: string
  382. nullable: true
  383. label: 'Password'
  384. port:
  385. type: integer
  386. nullable: true
  387. label: 'Port'
  388. constraints:
  389. Range:
  390. min: 0
  391. max: 65535
  392. options:
  393. type: sequence
  394. label: 'Options'
  395. sequence:
  396. type: string
  397. label: Option
  398. constraints:
  399. NotNull: []
  400. system.theme.global:
  401. type: theme_settings
  402. label: 'Theme global settings'
  403. system.advisories:
  404. type: config_object
  405. label: 'Security advisory settings'
  406. constraints:
  407. FullyValidatable: ~
  408. mapping:
  409. enabled:
  410. type: boolean
  411. label: 'Display critical security advisories'
  412. interval_hours:
  413. type: integer
  414. label: 'How often to check for security advisories, in hours'
  415. # Minimum can be set to 0 as it just means the advisories will be retrieved on every call.
  416. # @see \Drupal\system\SecurityAdvisories\SecurityAdvisoriesFetcher::getSecurityAdvisories
  417. constraints:
  418. Range:
  419. min: 0
  420. block.settings.system_branding_block:
  421. type: block_settings
  422. label: 'Branding block'
  423. constraints:
  424. FullyValidatable: ~
  425. mapping:
  426. use_site_logo:
  427. type: boolean
  428. label: 'Use site logo'
  429. use_site_name:
  430. type: boolean
  431. label: 'Use site name'
  432. use_site_slogan:
  433. type: boolean
  434. label: 'Use site slogan'
  435. block.settings.system_menu_block:*:
  436. type: block_settings
  437. label: 'Menu block'
  438. mapping:
  439. level:
  440. type: integer
  441. label: 'Starting level'
  442. depth:
  443. type: integer
  444. label: 'Maximum number of levels'
  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.