Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
I have a decoupled system where Drupal 8 is the backend presenting json data to front end. Now, all works fine, with the exception of exceptions (excuse the pun).
When the page does not exist I throw exception with a simple message, like this:
throw new NotFoundHttpException(t('URL @url was not found', array('@url' => $url)));
and on the the front-end I get a response with status 404 the content like this:
I'm going to attempt a simple family tree module in drupal 8. This will be my first drupal 8 module so I'm looking for some rough guidance.
This is the layout. Each person has their own node with their mother and father as fields. When I click on the family tree tab, it will show a family tree, query the mother and father fields and grab the mother and father for each of those going back 3 generations. Simple right lol?