Drupal 9 erhalten Feldwert
$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();