Drupal 8

Getting the parent node of a Drupal 8 node

There are some circumstances that you want to get data from the node one level up a menu from your current node. However, doing that is not self-explanatory since there isn't actually any direct relationship between the nodes.I'll be referring to the nodes as "parent" and "child" for simplicity despite this.