Drupal 9 Retirez le champ de la vue

// use this hook to remove fields because this fires before the
// query, but after the display is loaded.  therefore, it's a simple
// field unset.  dump $view->getDisplay() to see what's loaded.

function mymod_views_pre_build(ViewExecutable $view) {
	unset($view->field['name']);
}
dwcdev