You are here

config_ignore.install in Config Ignore 8.2

Same filename and directory in other branches
  1. 8.3 config_ignore.install

Install, update and uninstall functions for the config_ignore module.

File

config_ignore.install
View source
<?php

/**
 * @file
 * Install, update and uninstall functions for the config_ignore module.
 */

/**
 * Enable the config_filter module.
 */
function config_ignore_update_8201() {
  \Drupal::getContainer()
    ->get('module_installer')
    ->install([
    'config_filter',
  ]);
}

/**
 * Remove index from configuration export.
 */
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();
}

Functions

Namesort descending Description
config_ignore_update_8201 Enable the config_filter module.
config_ignore_update_8202 Remove index from configuration export.