You are here

function system_status_install in System Status 8

Same name and namespace in other branches
  1. 8.2 system_status.install \system_status_install()
  2. 6.2 system_status.install \system_status_install()
  3. 7 system_status.install \system_status_install()

Implements hook_install().

Creates a unique set of tokens for this installation.

File

./system_status.install, line 15
Installation file for system_status.

Code

function system_status_install() {
  $config = \Drupal::config('system_status.settings');
  $config
    ->set('system_status_token', SystemStatusEncryption::getToken());
  $config
    ->set('system_status_encrypt_token', SystemStatusEncryption::getToken());
  $config
    ->save();
}