function EntityTypeBundleInfoInterface::getBundleInfo
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Entity/EntityTypeBundleInfoInterface.php \Drupal\Core\Entity\EntityTypeBundleInfoInterface::getBundleInfo()
- 10 core/lib/Drupal/Core/Entity/EntityTypeBundleInfoInterface.php \Drupal\Core\Entity\EntityTypeBundleInfoInterface::getBundleInfo()
- 11.x core/lib/Drupal/Core/Entity/EntityTypeBundleInfoInterface.php \Drupal\Core\Entity\EntityTypeBundleInfoInterface::getBundleInfo()
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.
1 method overrides EntityTypeBundleInfoInterface::getBundleInfo()
- EntityTypeBundleInfo::getBundleInfo in core/
lib/ Drupal/ Core/ Entity/ EntityTypeBundleInfo.php - Gets the bundle info of an entity type.
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityTypeBundleInfoInterface.php, line 33
Class
- EntityTypeBundleInfoInterface
- Provides an interface for an entity type bundle info.
Namespace
Drupal\Core\EntityCode
public function getBundleInfo($entity_type_id);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.