how to display a media description in a twig template?
I got the media description in the preprocess
function template_preprocess_media(array &amp;$variables) {

  $bundle = $media-&gt;Bundle();

  if($bundle == 'file') {
    $field_media_file = $variables['content'][&quot;field_media_file&quot;];
 
    if($field_media_file[0][&quot;#description&quot;]){
      $desc = $field_media_file[0][&quot;#description&quot;];
    } else{
      $desc = $variables['name'];
    }
    $variables['description'] = $desc;
  }
}