'daily_email']); $node->setTitle($title); $node->setCreatedTime($email['date']); $node->setChangedTime($email['date']); $node->setOwnerId(1); $node->set('body', [ 'format' => 'basic_html', 'value' => $email['text'], ]); $node->set('path', $email['permalink']); $node->save(); }