Gets the entity matching the current row and relationship.
\stdClass $values: An object containing all retrieved values.
\Drupal\Core\Entity\EntityInterface Returns the entity matching the values.
public function getEntity(\stdClass $values) {
$relationship_id = $this->options['relationship'];
if ($relationship_id == 'none') {
return $values->_entity;
}
else {
return $values->_relationship_entities[$relationship_id];
}
}