Skip to content
This repository has been archived by the owner on Nov 9, 2021. It is now read-only.

Commit

Permalink
[GOVCMSD8-298] Fixed the moderation state of demo content.
Browse files Browse the repository at this point in the history
  • Loading branch information
Toby Bellwood committed Apr 8, 2019
1 parent 78c8210 commit ad677f5
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -135,6 +135,8 @@ protected function importPages() {

// Create Node.
$node = $this->entityTypeManager->getStorage('node')->create($values);
$node->setPublished(TRUE);
$node->set('moderation_state', "published");
$node->save();

// Create menu links.
Expand Down

0 comments on commit ad677f5

Please sign in to comment.