node drupal getreferenceEntity code example Example: get reference field entities // Reference field entities. $node->get($field)->referencedEntities();