I've been trying to display netId through the display on the view.
So, I used hook_entity_view_alter to alter the title of the field and the field_content to be the netId.
But it doesn't seem to be working.
So, my question is
1) Is $display->id() a machine_name of the display?
2) Is there any better way to go about?
function directories_entity_view_alter(array &$build, EntityInterface $entity, EntityViewDisplayInterface $display) {
if ($display->id() != 'team_directory') {
return;