By alexpott on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
10.3.x
Introduced in version:
10.3.0
Issue links:
Description:
Install profiles like Standard and Demo Umami used to contain code like:
// Assign user 1 the "administrator" role.
/** @var \Drupal\user\Entity\User $user */
$user = User::load(1);
$user->addRole('administrator');
$user->save();
This is no longer necessary as the installer adds any admin roles created to user 1 as part of the Site configuration form submit handler.
Impacts:
Site templates, recipes and distribution developers