You are here

function shield_update_8001 in Shield 8

Update allow_cli config to boolean value.

File

./shield.install, line 11
Contains install and update related functions for Shield.

Code

function shield_update_8001() {
  $config = \Drupal::configFactory()
    ->getEditable('shield.settings');
  $allow_cli = (bool) $config
    ->get('allow_cli');
  $config
    ->set('allow_cli', $allow_cli);
  $config
    ->save(TRUE);
}