I am trying to print an entity reference field (from paragraphs module) into a controller.
I learned from this ticketI learned from this ticket that you can use
{{ teacher.field_classrooms.entity.field_in_paragraph.value }}
to get the value of one field from the entity, but what I really need is to print the whole entity not just one field from the entity.
I was hoping to do something like {{ teacher.field_classrooms.entity }}
rather than {{ teacher.field_classrooms.entity.field_in_paragraph.value }} {{ teacher.field_classrooms.entity.field_different_in_paragraph.value }}
.