Twig taxonomy term entity reference ID

0
down vote
I figured it out, I was able to print the term ID of the category field using:

{{ node.field_category.entity.tid.value }} as I realised I was looking in the wrong direction. Drupal 8 use entity reference only so I needed to call the TID from the referenced entity which of course is a taxonomy term in my category field.

Views Bootstrap

Timeline

Copy contents of a CCK field into the node body

$entity->body['und'][0]['value'] = $entity->field_text['und'][0]['value'];
node_save($entity);

ThemePunch

Round checkboxes

Uri

Pages

Subscribe to Front page feed