summaryrefslogtreecommitdiffstatshomepage
path: root/core/modules/jsonapi/jsonapi.install
diff options
context:
space:
mode:
authorAlex Pott <alex.a.pott@googlemail.com>2021-12-30 11:16:28 +0000
committerAlex Pott <alex.a.pott@googlemail.com>2021-12-30 11:16:28 +0000
commitaa3434c4aaf00383dcfe26fbb499d63e1b260aa7 (patch)
treeeee2888b83f71debe0475bf583fbcf4949b62e8b /core/modules/jsonapi/jsonapi.install
parentfce76ccb9d34661e536ff5fe2c809078d5b00c64 (diff)
downloaddrupal-aa3434c4aaf00383dcfe26fbb499d63e1b260aa7.tar.gz
drupal-aa3434c4aaf00383dcfe26fbb499d63e1b260aa7.zip
Issue #3049048 by danflanagan8, ndobromirov, mglaman, bbrala, alexpott, Wim Leers, gabesullice: Invalid JSON:API responses when maintenance mode is on
Diffstat (limited to 'core/modules/jsonapi/jsonapi.install')
-rw-r--r--core/modules/jsonapi/jsonapi.install14
1 files changed, 14 insertions, 0 deletions
diff --git a/core/modules/jsonapi/jsonapi.install b/core/modules/jsonapi/jsonapi.install
index 36bc4f021105..80009b525a46 100644
--- a/core/modules/jsonapi/jsonapi.install
+++ b/core/modules/jsonapi/jsonapi.install
@@ -82,3 +82,17 @@ function jsonapi_requirements($phase) {
function jsonapi_update_last_removed() {
return 8701;
}
+
+/**
+ * Set values for maintenance_header_retry_seconds min and max.
+ *
+ * @see https://www.drupal.org/node/3247453
+ */
+function jsonapi_update_9401() {
+ $config = \Drupal::configFactory()->getEditable('jsonapi.settings');
+ $config->set('maintenance_header_retry_seconds', [
+ 'min' => 5,
+ 'max' => 10,
+ ]);
+ $config->save(TRUE);
+}