You are here

function cas_update_8004 in CAS 2.x

Same name and namespace in other branches
  1. 8 cas.install \cas_update_8004()

Set new 'protocol' config option to HTTPS.

File

./cas.install, line 135
The Drupal install file.

Code

function cas_update_8004() {
  $config_factory = \Drupal::configFactory();
  $config = $config_factory
    ->getEditable('cas.settings');
  $config
    ->set('server.protocol', 'https');
  $config
    ->save();
}