system_status.install in System Status 8.2
Same filename and directory in other branches
Installation file for system_status.
File
system_status.installView source
<?php
/**
* @file
* Installation file for system_status.
*/
/**
* Implements hook_install().
*
* Creates a unique set of tokens for this installation.
*/
function system_status_install() {
$encrypt = \Drupal::service('system_status.encrypt');
$config = \Drupal::configFactory()
->getEditable('system_status.settings');
$config
->set('system_status_token', $encrypt::getToken());
$config
->set('system_status_encrypt_token', $encrypt::getToken());
$config
->set('system_status_service_allow_external', 1);
$config
->save();
}
Functions
Name | Description |
---|---|
system_status_install | Implements hook_install(). |