I have two fields whose type is List (text). In the allowed values list, i want to join them. I used the following code.
$value = $entity->field_a->value . $entity->field_b->value; $value = $fields['field_a']['value'] . $fields['field_b']['value'];
I can get the result fine, but the value returns the keys only. How can I get the labels?