|
@@ -14,5 +14,13 @@
|
|
|
*/
|
|
|
function figli_starter_kit_install() {
|
|
|
// Add code here to make nodes, terms, etc.
|
|
|
-
|
|
|
+ // Assign user 1 the "administrator" role.
|
|
|
+ $user = User::load(1);
|
|
|
+ $user->roles[] = 'root';
|
|
|
+ $user->save();
|
|
|
+
|
|
|
+ // Don't do anything else during config sync.
|
|
|
+ if (\Drupal::isConfigSyncing()) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
}
|