You are here

function varbase_update_8036 in Varbase: The Ultimate Drupal CMS Starter Kit (Bootstrap Ready) 8.4

Init config settings for which general config to ignore with config ignore.

File

./varbase.install, line 468
Install, update and uninstall functions for the Varbase installation profile.

Code

function varbase_update_8036() {
  $profile_path = drupal_get_path('profile', 'varbase') . '/config/install/';
  $config_path = $profile_path . 'config_ignore.settings.yml';
  $data = (array) Yaml::parse($config_path);
  $config = \Drupal::configFactory()
    ->getEditable('config_ignore.settings');
  $config
    ->setData($data)
    ->save(TRUE);
}