You are here

function cas_update_8004 in CAS 8

Same name and namespace in other branches
  1. 2.x 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();
}