You are here

public function EntityInterface::bundle in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/EntityInterface.php \Drupal\Core\Entity\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()
EntityBase::bundle in core/lib/Drupal/Core/Entity/EntityBase.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();