protected function EntityBase::entityTypeBundleInfo in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::entityTypeBundleInfo()
- 9 core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::entityTypeBundleInfo()
Gets the entity type bundle info service.
Return value
\Drupal\Core\Entity\EntityTypeBundleInfoInterface
2 calls to EntityBase::entityTypeBundleInfo()
- ConfigEntityBundleBase::postSave in core/
lib/ Drupal/ Core/ Config/ Entity/ ConfigEntityBundleBase.php - Acts on a saved entity before the insert or update hook is invoked.
- ContentEntityBase::isTranslatable in core/
lib/ Drupal/ Core/ Entity/ ContentEntityBase.php - Returns the translation support status.
File
- core/
lib/ Drupal/ Core/ Entity/ EntityBase.php, line 81
Class
- EntityBase
- Defines a base entity class.
Namespace
Drupal\Core\EntityCode
protected function entityTypeBundleInfo() {
return \Drupal::service('entity_type.bundle.info');
}