Drupal 8編程 - 如何利用程式碼創造Entity
假設要創造一個新的"article" entity(安裝standard profile時所設定的entity type)
$array = array (
'nid' => '45', // can designate node id
'type' => 'article',
'title' => 'article title',
'uid' => '1', // author
'promote' => '1', // promoted to front page
'sticky' => '0', // Sticky at top of lists
'status' => '0', // 0: unpublished, 1: publish
'created' => '1483228800', // timestamp
'changed' => '1483228800', // timestamp
'body' => array(
array(
'value' => 'text',
'summary' => 'summary of body',
'fo