You are here

function thunder_finish_installation in Thunder 8.5

Same name and namespace in other branches
  1. 8.2 thunder.profile \thunder_finish_installation()
  2. 8.3 thunder.profile \thunder_finish_installation()
  3. 8.4 thunder.profile \thunder_finish_installation()
  4. 6.2.x thunder.profile \thunder_finish_installation()
  5. 6.0.x thunder.profile \thunder_finish_installation()
  6. 6.1.x thunder.profile \thunder_finish_installation()

Finish Thunder installation process.

Parameters

array $install_state: The install state.

Throws

\Drupal\Core\Entity\EntityStorageException

File

./thunder.profile, line 68
Enables modules and site configuration for a thunder site installation.

Code

function thunder_finish_installation(array &$install_state) {
  \Drupal::service('config.installer')
    ->installOptionalConfig();

  // Assign user 1 the "administrator" role.
  $user = User::load(1);
  $user->roles[] = 'administrator';
  $user
    ->save();
}