function EntityTypeInterface::getBundleOf

Same name in other branches
  1. 9 core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::getBundleOf()
  2. 8.9.x core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::getBundleOf()
  3. 10 core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::getBundleOf()

Gets the entity type ID 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 ID for which this entity provides bundles, or NULL if does not provide bundles for another entity type.

1 method overrides EntityTypeInterface::getBundleOf()
EntityType::getBundleOf in core/lib/Drupal/Core/Entity/EntityType.php
Gets the entity type ID for which this entity provides bundles.

File

core/lib/Drupal/Core/Entity/EntityTypeInterface.php, line 493

Class

EntityTypeInterface
Provides an interface for an entity type and its metadata.

Namespace

Drupal\Core\Entity

Code

public function getBundleOf();

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.