Where are the field labels and descriptions stored?
You can try something like this :-

$node = \Drupal::routeMatch()-&gt;getParameter('node');
if ($node) {
$field_label = $node-&gt;field_file-&gt;getFieldDefinition()-&gt;getLabel();
$field_desc = $node-&gt;field_file-&gt;getFieldDefinition()-&gt;getDescription();
$field_settings = $node-&gt;field_file-&gt;getFieldDefinition()-&gt;getSettings();
}