How to access a selected label instead of value I have a select list of states:

AL|Alabama
AK|Alaska
AZ|Arizona
AR|Arkansas


In code to access the selected state value I can run code like this:

...
$entity-&gt;get('field_state')-&gt;value;
...


I get the values like AL or AK.  How can I get the labels like Alabama or Alaska?
Not sure if there is a better way but I got the value by getting the allowed values first.

$allowed_values = $state-&gt;getFieldDefinition('field_state')-&gt;getFieldStorageDefinition()-&gt;getSetting('allowed_values');
$state_value = $state-&gt;get('field_state')-&gt;value;
$info['state_name'] = $allowed_values[$state_value];