You are here

function config_ignore_update_8202 in Config Ignore 8.2

Same name and namespace in other branches
  1. 8.3 config_ignore.install \config_ignore_update_8202()

Remove index from configuration export.

File

./config_ignore.install, line 18
Install, update and uninstall functions for the config_ignore module.

Code

function config_ignore_update_8202() {
  $config = \Drupal::configFactory()
    ->getEditable('config_ignore.settings');
  $ignored_config_entities = $config
    ->get('ignored_config_entities') ?: [];
  $config
    ->set('ignored_config_entities', array_values($ignored_config_entities));
  $config
    ->save();
}