public function EntityTypeBundleInfo::getBundleInfo in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Entity/EntityTypeBundleInfo.php \Drupal\Core\Entity\EntityTypeBundleInfo::getBundleInfo()
- 9 core/lib/Drupal/Core/Entity/EntityTypeBundleInfo.php \Drupal\Core\Entity\EntityTypeBundleInfo::getBundleInfo()
File
- core/
lib/ Drupal/ Core/ Entity/ EntityTypeBundleInfo.php, line 79
Class
- EntityTypeBundleInfo
- Provides discovery and retrieval of entity type bundles.
Namespace
Drupal\Core\EntityCode
public function getBundleInfo($entity_type_id) {
$bundle_info = $this
->getAllBundleInfo();
return $bundle_info[$entity_type_id] ?? [];
}