Modify the list of available views access plugins.
This hook may be used to modify plugin properties after they have been specified by other modules.
array $plugins: An array of all the existing plugin definitions, passed by reference.
\Drupal\views\Plugin\ViewsPluginManager
function hook_views_plugins_access_alter(array &$plugins) {
// Remove the available plugin because the users should not have access to it.
unset($plugins['role']);
}