3 namespace Drupal\Core\Entity;
6 * Provides an interface for an entity type bundle info.
8 interface EntityTypeBundleInfoInterface {
11 * Get the bundle info of all entity types.
14 * An array of bundle information where the outer array is keyed by entity
15 * type. The next level is keyed by the bundle name. The inner arrays are
16 * associative arrays of bundle information, such as the label for the
19 public function getAllBundleInfo();
22 * Gets the bundle info of an entity type.
24 * @param string $entity_type
28 * An array of bundle information where the outer array is keyed by the
29 * bundle name, or the entity type name if the entity does not have bundles.
30 * The inner arrays are associative arrays of bundle information, such as
31 * the label for the bundle.
33 public function getBundleInfo($entity_type);
36 * Clears static and persistent bundles.
38 public function clearCachedBundles();