Getting a teaser from multiple nodes

If you've done an entity field query you can process it like this to get a 'teaser' rather than a 'full' view

<?php
if (!empty($result['node'])) {
   
$output['nodes'] = node_view_multiple(node_load_multiple(array_keys($result['node'])), 'teaser');
  }
?>

section: