I'm trying to create a twig layout for a Person content type that is be used within Paragraphs. My twig file is paragraph--person-profile--default.html.twig.
I can get the Person name with {{ content.field_person[0]['#node'].title.0.value }}
I cannot get the image. I've tried the following:
{{ content.field_person[0]['#node'].field_image.0.value }}
and {{ content.field_person[0]['#node'].field_image.0 }}
The following error is reported.
Exception: Object of type Drupal\image\Plugin\Field\FieldType\ImageItem cannot be printed. in Drupal\Core\Template\TwigExtension->escapeFilter()
The end game is to have a taxonomy term and a person content type within a paragraph type. The taxonomy term will be used to to style the person. The same person may be styled differently on different pages.