Access Entity Properties in a Field Twig Template

This doesn’t need much of an explanation. You can use any entity methods as far as I can tell.

Here’s an example showing how to get the node ID in a field template:

 

Tagged with: ,
Posted in Development

Leave a Reply

Your email address will not be published. Required fields are marked *

*