Render a single field of an entity
Sometimes you just want to get the renderable array of a single field of an entity instead of the full entity. In the example below, we'll get the renderable array for two fields, body and field_example:
Sometimes you just want to get the renderable array of a single field of an entity instead of the full entity. In the example below, we'll get the renderable array for two fields, body and field_example: