Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

Drupal twig get value of entity reference field

node.field_example.entity.name.value {# Get the name of entity #}
node.field_example.entity.id {# Get the ID of entity #}
Source by drupal.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #Drupal #twig #entity #reference #field
ADD COMMENT
Topic
Name
7+4 =