Access list of view modes available for nodes In my code, I need to get a list of all the view modes defined for nodes. 

In Drupal 7, it was available via entity_get_info(). What is the equivalent method for producing a list of available view modes in Drupal 8?
View modes are config entities, so an entity query would do the trick:

$view_modes = Drupal::entityQuery('entity_view_mode')
  -&gt;condition('targetEntityType', 'node')
  -&gt;execute();