function thunder_finish_installation in Thunder 6.1.x
Same name and namespace in other branches
- 8.5 thunder.profile \thunder_finish_installation()
- 8.2 thunder.profile \thunder_finish_installation()
- 8.3 thunder.profile \thunder_finish_installation()
- 8.4 thunder.profile \thunder_finish_installation()
- 6.2.x thunder.profile \thunder_finish_installation()
- 6.0.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 67 - Enables modules and site configuration for a thunder site installation.
Code
function thunder_finish_installation(array &$install_state) {
// Assign user 1 the "administrator" role.
$user = User::load(1);
$user->roles[] = 'administrator';
$user
->save();
}