druparcheky_profile-8.x-1.3/druparcheky.install
druparcheky.install
<?php
/**
* @file
* Install, update and uninstall functions for the standard installation profile.
*/
use Drupal\user\Entity\User;
/**
* Implements hook_install().
*
* Perform actions to set up the site for this profile.
*
* @see system_install()
*/
function druparcheky_install()
{
// Assign user 1 the "administrator" role.
$user = User::load(1);
$user->roles[] = 'administrator';
$user->save();
}
