deckerdev.com

Getting field values can be a pain sometimes.

Entity (node, taxonomy term, etc) objects

<?php
$node->get('field_name')->value;