Skip to content
Snippets Groups Projects
Commit b49b17cc authored by Mateu Aguiló Bosch's avatar Mateu Aguiló Bosch Committed by Björn Brala
Browse files

feat: add migration for config

parent 0d9e6c54
No related branches found
No related tags found
1 merge request!38Issue #3387544: Introduce opt-in configuration integrity validation
path_prefix: jsonapi
include_count: false
default_disabled: false
validate_configuration_integrity: true
<?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);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment