How to exclude Views results for custom entities for which a user has no permission to view them? I have a custom entity which I list in views. I set access control for them, but when I list in views these entities, all entities shows up, those one too, which  the user does not have permission to access.

What do I need to implement to filter out those entities, which the user does not have right to view?
After reviewing the list of Views hooks, I think hook_views_pre_render() is the one you can use to filter results before they are rendered.

/**
 * Implements hook_views_pre_render().
 */
function MODULE_views_pre_render(ViewExecutable $view) {
  if (!empty($view-&gt;result)) {
    $entities = [
      'your_custom_entity_id',
      'another_entity_id',
    ];

    foreach ($view-&gt;result as $key =&gt; $result) {
      if (empty($result-&gt;_entity)) {
        continue;
      }

      if (!in_array($result-&gt;_entity-&gt;getEntityTypeId(), $entities)) {
        continue;
      }

      $access = \Drupal::entityTypeManager()
        -&gt;getAccessControlHandler($result-&gt;_entity-&gt;getEntityTypeId())
        -&gt;access($result-&gt;_entity, 'view', NULL, TRUE);

      if (!$access-&gt;isAllowed()) {
        unset($view-&gt;result[$key]);
      }
    }
  }
}