interface EntityTypeBundleInfoInterface (View source)

Provides an interface for an entity type bundle info.

Methods

array
getAllBundleInfo()

Get the bundle info of all entity types.

array
getBundleInfo(string $entity_type_id)

Gets the bundle info of an entity type.

clearCachedBundles()

Clears static and persistent bundles.

Details

array getAllBundleInfo()

Get the bundle info of all entity types.

Return Value

array

An array of bundle information where the outer array is keyed by entity type. The next level is keyed by the bundle name. The inner arrays are associative arrays of bundle information, such as the label for the bundle.

array getBundleInfo(string $entity_type_id)

Gets the bundle info of an entity type.

Parameters

string $entity_type_id

The entity type ID.

Return Value

array

An array of bundle information where the outer array is keyed by the bundle name, or the entity type name if the entity does not have bundles. The inner arrays are associative arrays of bundle information, such as the label for the bundle.

clearCachedBundles()

Clears static and persistent bundles.