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()->getFieldDefinitions('node', $type); foreach ($fieldDefinition as $field_name => $field_definition) { $settings = $field_definition->getSettings(); $resolution = $settings['min_resolution']; }
How do I get the field definition of a image field inside of a paragraphs field.