Change record status: 
Project: 
Introduced in branch: 
8.0.x
Introduced in version: 
8.0.0
Description: 

The function has been deprecated in favor of the EntityTypeBundleInfo service.

Before

entity_get_bundles();
entity_get_bundles('node');

After

\Drupal::service('entity_type.bundle.info')->getAllBundleInfo();
\Drupal::service('entity_type.bundle.info')->getBundleInfo('node');
Impacts: 
Module developers