How to have a field displayed depending on user's role in Views? I use Views module to display the content of a custom entity with Page view (not Block view).
I'd like to have one field displayed only if the user has a certain role.
What is the best way to do that?
If this is a custom entity you may consider overriding the checkFieldAccess method of Drupal\Core\Entity\EntityAccessControlHandler.

Then assign your own handler as handlers/access in @ContentEntityType.

But it's only me who prefers being in coding hell instead of configuration hell :-)