Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jsonapi_extras
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
jsonapi_extras
Commits
b49b17cc
Commit
b49b17cc
authored
1 year ago
by
Mateu Aguiló Bosch
Committed by
Björn Brala
10 months ago
Browse files
Options
Downloads
Patches
Plain Diff
feat: add migration for config
parent
0d9e6c54
No related branches found
No related tags found
1 merge request
!38
Issue #3387544: Introduce opt-in configuration integrity validation
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
config/install/jsonapi_extras.settings.yml
+1
-0
1 addition, 0 deletions
config/install/jsonapi_extras.settings.yml
jsonapi_extras.install
+23
-0
23 additions, 0 deletions
jsonapi_extras.install
with
24 additions
and
0 deletions
config/install/jsonapi_extras.settings.yml
+
1
−
0
View file @
b49b17cc
path_prefix
:
jsonapi
include_count
:
false
default_disabled
:
false
validate_configuration_integrity
:
true
This diff is collapsed.
Click to expand it.
jsonapi_extras.install
0 → 100644
+
23
−
0
View file @
b49b17cc
<?php
declare
(
strict_types
=
1
);
use
Drupal\Core\Config\ConfigFactoryInterface
;
/**
* @file
*
* Module installation file.
*/
/**
* Implements hook_update_N().
*/
function
jsonapi_extras_update_9001
()
{
$config_factory
=
\Drupal
::
service
(
'config.factory'
);
assert
(
$config_factory
instanceof
ConfigFactoryInterface
);
$editable_config
=
$config_factory
->
getEditable
(
'jsonapi_extras.settings'
);
$editable_config
->
set
(
'validate_configuration_integrity'
,
FALSE
);
// Since the schema changes may not be there yet, we need to trust the data.
$editable_config
->
save
(
TRUE
);
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment