Skip to content

Commit

Permalink
Merge pull request #797 from localgovdrupal/3.x
Browse files Browse the repository at this point in the history
Release 3.0.13
  • Loading branch information
stephen-cox authored Dec 17, 2024
2 parents e3c0f2a + 567eea8 commit 20b1fda
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions localgov.install
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* Install functions for the LocalGovInstall installation profile.
*/

use Drupal\user\Entity\User;
use Drupal\views\Entity\View;

/**
Expand All @@ -19,11 +18,6 @@ function localgov_install() {

$config_factory = \Drupal::configFactory();

// Assign user 1 the "administrator" role.
$user = User::load(1);
$user->roles[] = 'administrator';
$user->save();

// Disable the frontpage view.
$frontpage_view = View::load('frontpage');
$frontpage_view->setStatus(FALSE)->save();
Expand Down

0 comments on commit 20b1fda

Please sign in to comment.