I am creating nodes using the below code.
$node = Node::create([ // The node entity bundle. 'type' => 'exercise', 'langcode' => 'en', 'created' => $ex->created, 'changed' => $ex->changed, // The user ID. 'uid' => $ex->uid, 'title' => $ex->title, 'field_lesson' => $nid, 'body' => [ 'summary' => $ex->summary, 'value' => $ex->body, 'format' => 'full_html', ], 'field_fret_text' => ['value' => $ex->frettxt, 'format' => 'full_html'], 'field_intro' => ['value' => $ex->intro, 'format' => 'full_html'] ]);
For the most part everything works, but the format column is not being set for my custom fields field_intro and field_fret_text; only the value is being set. I would have thought that specifying the columns as in the case with the body field would work.
How do I set the input format for those fields that are not the node body?