Populate Content Type with link Fields

In Drupal 8, I have modified the Standard Page a Content Type with a Link field that allows multiple links called field_external_links. I can figure out how to populate the Standard Page Content Type through code, but cannot populate the Link field. My code is below:

$node = Node::create([
‘type’ => ‘standard_page’,
‘langcode’ => ‘en’,
‘created’ => REQUEST_TIME,
‘changed’ => REQUEST_TIME,
// The user ID.
‘uid’ => 1,
‘title’ => ‘Node Title’,
‘body’ => [
‘summary’ => ‘Node Teaser’,
‘value’ => ‘Node body’,
‘format’ => ‘full_html’,
],
‘field_external_links’ => [
‘title’ => ‘BBC’,
‘url’ => ‘http://www.bbc.com‘,
‘attributes’ => array()
]
]);

$node->save();

When I run this code, the content type is populated, but the link field is empty.I have spent quite a bit of time looking for a solution to this problem, but haven’t been able to find anything. Any ideas? Thanks in advance for any help.

Paul

Drupal version: 


Source: https://www.drupal.org/taxonomy/term/4/feed