Get the entity matching the current row and relationship.
$values: An object containing all retrieved values.
function get_entity($values) {
$relationship_id = $this->options['relationship'];
if ($relationship_id == 'none') {
return $values->_entity;
}
else {
return $values->_relationship_entities[$relationship_id];
}
}