public function EntityType::getBundleOf in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Entity/EntityType.php \Drupal\Core\Entity\EntityType::getBundleOf()
- 9 core/lib/Drupal/Core/Entity/EntityType.php \Drupal\Core\Entity\EntityType::getBundleOf()
Gets the entity type for which this entity provides bundles.
It can be used by other modules to act accordingly; for example, the Field UI module uses it to add operation links to manage fields and displays.
Return value
string|null The entity type for which this entity provides bundles, or NULL if does not provide bundles for another entity type.
Overrides EntityTypeInterface::getBundleOf
File
- core/
lib/ Drupal/ Core/ Entity/ EntityType.php, line 655
Class
- EntityType
- Provides an implementation of an entity type and its metadata.
Namespace
Drupal\Core\EntityCode
public function getBundleOf() {
return $this->bundle_of;
}