8.2.x EntityInterface.php public EntityInterface::bundle()
8.0.x EntityInterface.php public EntityInterface::bundle()
8.1.x EntityInterface.php public EntityInterface::bundle()
8.3.x EntityInterface.php public EntityInterface::bundle()

Gets the bundle of the entity.

Return value

string The bundle of the entity. Defaults to the entity type ID if the entity type does not make use of different bundles.

2 methods override EntityInterface::bundle()
Entity::bundle in core/lib/Drupal/Core/Entity/Entity.php
Gets the bundle of the entity.
ViewUI::bundle in core/modules/views_ui/src/ViewUI.php
Gets the bundle of the entity.

File

core/lib/Drupal/Core/Entity/EntityInterface.php, line 88

Class

EntityInterface
Defines a common interface for all entity objects.

Namespace

Drupal\Core\Entity

Code

public function bundle();