EntityTypeInterface::getBundleOf

public EntityTypeInterface::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.

File

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

Class

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

Namespace

Drupal\Core\Entity

Code

public function getBundleOf();
doc_Drupal
2016-10-29 09:08:21
Comments
Leave a Comment

Please login to continue.