Drupal 9 Dapatkan Nilai Bidang
$node->get('field_name')->getValue();
Blue-eyed Booby
$node->get('field_name')->getValue();
//Single value expected
$node->get('field_name')->getString();
//Multiple value expected
$node->get('field_name')->getValue();
//Single value expected
$node->get('field_name)->getString();
//Multiple value expected
$node->get('field_name')->getValue();