I tried this answer:
https://drupal.stackexchange.com/a/298084/1082
But I can’t seem to use
'field_scientists' => $entity_reference_uuid
where, in my case, field_scientists
is a field of type Entity Reference UUID – which is a field type provided by https://www.drupal.org/project/entity_reference_uuid module
What happens for me is that I get nothing back, my results array from that example is empty.
Looking to do this programmatically in my own custom module, rather than use a Drupal View.
If there’s another way e.g. that uses the ->query
method for querying the database I’d be happy to use that programmatic approach.
Thank you.