How do I get the field definition of a paragraphs image field I need to get the resolution of the image using getFieldDefinitions(). For normal fields I can get the field definitions with below.

$fieldDefinition = \Drupal::entityManager()-&gt;getFieldDefinitions('node', $type);
foreach ($fieldDefinition as $field_name =&gt; $field_definition) {
    $settings    = $field_definition-&gt;getSettings();
    $resolution  = $settings['min_resolution'];
}


How do I get the field definition of a image field inside of a paragraphs field.
As it mention in comment just use paragraph instead of node.

$fieldDefinition = \Drupal::entityManager()-&gt;getFieldDefinitions('paragraph', 'your_paragraph_type_name');
    foreach ($fieldDefinition as $field_name =&gt; $field_definition) {
      if ($field_definition-&gt;getType() == 'image'){
        $settings    = $field_definition-&gt;getSettings();
        $resolution  = $settings['min_resolution'];
      }
    }