Create content programmatically In Drupal 8, how can I create content programmatically ? 
From the "Drupal 8" administration, I created a new type "House" (contain a description, an image, a reference field to users ...). How can I create a entity type "House" from a custom module ? 

In my custom module, I have a form file (contain a class who extends FormBase). In the submit callback, I want create a new "house" and set values and save the new Entity.

I don't find examples on the web, in core...
Here's a simple example of creating a node in Drupal 8.

$data = [
  'type' =&gt; 'article', 
  'title' =&gt; 'My new title', 
  'uid' =&gt; 1
];
$node = Drupal::entityTypeManager()
  -&gt;getStorage('node')
  -&gt;create($data);
$node-&gt;save();


Updated to remove deprecated function as per comments from @mradcliffe. Thanks!

FYI, for testing out little snippets of code like this, the drush core-cli command works great. See: http://www.drushcommands.com/drush-7x/core/core-cli