/** @var \Drupal\bacademy_cpd\Entity\CpdPoints $cpd_record */ foreach ($cpd_records as $cpd_record) { $completed_node = $cpd_record->get('node')->entity; /** @var \Drupal\node\Entity\Node $completed_node */ $completed_nodeID = $completed_node->get('nid')->value;
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter