You are here

function site_settings_install in Site Settings and Labels 8

Implements hook_install().

File

./site_settings.install, line 11
Contains install and update hooks.

Code

function site_settings_install() {

  // On initial install set template_key to site_settings.
  $config = \Drupal::configFactory()
    ->getEditable('site_settings.config');
  $config
    ->set('template_key', 'site_settings');
  $config
    ->save();
}