You are here

public function EntityInterface::bundle in Drupal 10

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

1 method overrides EntityInterface::bundle()
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();