Display values of custom fields created on media entity to twig (Drupal 8)

by Noel   Last Updated December 15, 2017 04:07 AM

I'm trying to display the values from the custom fields that have created on my Media Entity to my page--media.html.twig file. The fields that I'm trying to output are Location and Photographer

I tried using this code below, to make it work.

{{ node.field_photographer.entity.value }}

Also tried an alternative

{{ content.field_photographer.entity.value }}

enter image description here

Tags : entities

Related Questions

How to create a custom template for entities?

Updated April 07, 2015 03:03 AM

Drupal 8 Custom Entities from a UI?

Updated July 14, 2015 15:03 PM