workflows_of_ai-1.0.x-dev/workflows_of_ai.install
workflows_of_ai.install
<?php
/**
* @file
* Install, update and uninstall functions for the workflows-of-ai installation profile.
*/
use Drupal\user\Entity\User;
/**
* Implements hook_install().
*
* Perform actions to set up the site for this profile.
*
* @see system_install()
*/
function workflows_of_ai_install() {
// Assign user 1 the "administrator" role.
/** @var \Drupal\user\Entity\User $user */
$user = User::load(1);
$user->addRole('administrator');
$user->save();
}
