Drupal 8 mendapatkan entitas lapangan

// Get first field reference entity.
$entity->get('field_entity_reference')->entity;

// Get all field reference entities.
$entities = $entity->get('field_entity_reference')->referencedEntities();
Gleaming Gannet