diff options
author | Lee Rowlands <lee.rowlands@previousnext.com.au> | 2020-01-22 10:30:15 +1000 |
---|---|---|
committer | Lee Rowlands <lee.rowlands@previousnext.com.au> | 2020-01-22 10:30:15 +1000 |
commit | 2e53ac16990644f44b44e3a58752a6494ee1d89d (patch) | |
tree | e260d3bfdfc4574c9849e06f31f422192d068ef8 /core/modules/jsonapi/jsonapi.install | |
parent | 136f05506696d196e784a376f580ab2c4e52dfcb (diff) | |
download | drupal-2e53ac16990644f44b44e3a58752a6494ee1d89d.tar.gz drupal-2e53ac16990644f44b44e3a58752a6494ee1d89d.zip |
Revert "Issue #3087644 by jibran, Berdir, alexpott, longwave, Wim Leers, amateescu, catch, larowlan, dpi, quietone: Remove Drupal 8 updates up to and including 88**"
This reverts commit 136f05506696d196e784a376f580ab2c4e52dfcb.
Diffstat (limited to 'core/modules/jsonapi/jsonapi.install')
-rw-r--r-- | core/modules/jsonapi/jsonapi.install | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/core/modules/jsonapi/jsonapi.install b/core/modules/jsonapi/jsonapi.install index 36bc4f021105..a1ada646df33 100644 --- a/core/modules/jsonapi/jsonapi.install +++ b/core/modules/jsonapi/jsonapi.install @@ -77,8 +77,11 @@ function jsonapi_requirements($phase) { } /** - * Implements hook_update_last_removed(). + * Enable BC: default the new read-only mode to "off" on existing sites. */ -function jsonapi_update_last_removed() { - return 8701; +function jsonapi_update_8701() { + $config_factory = \Drupal::configFactory(); + $jsonapi_settings = $config_factory->getEditable('jsonapi.settings'); + $jsonapi_settings->set('read_only', FALSE) + ->save(TRUE); } |