How to get the "label" of "Allowed Values" for a text list programmatically? I created a text list field on the user entity.  I entered the following for Allowed values list:
apple|A delicious apple
pear|A very delicious pear
orange|A not so delicious orange

I can access the key for the field like this:
$current_user-&gt;get('field_list_fruits')-&gt;value,

which returns apple.  But how do I get the text A delicious apple programmatically?
Load the field config and look for the key/value pair from the allowed value list?
Much easier though is using the field formatter for this field type OptionsDefaultFormatter:
$build = $user-&gt;field_foo-&gt;view(['type' =&gt; 'list_default']);

What you do with $build depends on the use case. Put it in a render array to be rendered later or
$output = \Drupal::service('renderer')-&gt;renderPlain($build);

if you need it now and can't wait until the page is rendered, for example if you want to send an email.