February 2016

Creating a node with Drupal 8

Creating a node with PHP in Drupal 8 is easy and not much different than in Drupal 7. The following is how to create a base node. I've also included how to fill in a few of the typical fields, you'll probably want to add more or use different ones. Lastly, I've updated the path alias.