Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By seongbae on
Hello,
I am trying to get a reference to each node object to pull data including node author, node created date, etc. I used following code on the node page:
$node = \Drupal::routeMatch()->getParameter('node');
But how can I get reference to each node from views? Above code returns null when running in view mode.
I am using Drupal 8.3.2.
Thank you.
Seong