public function EntityInterface::bundle

Returns the bundle of the entity.

Return value

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

2 methods override EntityInterface::bundle()
Entity::bundle in drupal/core/lib/Drupal/Core/Entity/Entity.php
Implements EntityInterface::bundle().
ViewUI::bundle in drupal/core/modules/views/views_ui/lib/Drupal/views_ui/ViewUI.php
Implements \Drupal\Core\Entity\EntityInterface::bundle().

File

drupal/core/lib/Drupal/Core/Entity/EntityInterface.php, line 104
Definition of Drupal\Core\Entity\EntityInterface.

Class

EntityInterface
Defines a common interface for all entity objects.

Namespace

Drupal\Core\Entity

Code

public function bundle();