By berdir on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.0.x
Introduced in version:
8.0.0
Issue links:
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