You are here

system_status.install in System Status 8

Installation file for system_status.

File

system_status.install
View source
<?php

use Drupal\system_status\Controller\SystemStatusEncryption;

/**
 * @file
 * Installation file for system_status.
 */

/**
 * Implements hook_install().
 *
 * Creates a unique set of tokens for this installation.
 */
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();
}

Functions

Namesort descending Description
system_status_install Implements hook_install().