EntityTypeBundleInfoInterface::getBundleInfo

public EntityTypeBundleInfoInterface::getBundleInfo($entity_type)

Gets the bundle info of an entity type.

Parameters

string $entity_type: The entity type.

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.

File

core/lib/Drupal/Core/Entity/EntityTypeBundleInfoInterface.php, line 33

Class

EntityTypeBundleInfoInterface
Provides an interface for an entity type bundle info.

Namespace

Drupal\Core\Entity

Code

public function getBundleInfo($entity_type);
doc_Drupal
2016-10-29 09:08:11
Comments
Leave a Comment

Please login to continue.