You are here

public function EntityBase::bundle in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::bundle()
  2. 9 core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::bundle()
1 method overrides EntityBase::bundle()
ContentEntityBase::bundle in core/lib/Drupal/Core/Entity/ContentEntityBase.php
Gets the bundle of the entity.

File

core/lib/Drupal/Core/Entity/EntityBase.php, line 143

Class

EntityBase
Defines a base entity class.

Namespace

Drupal\Core\Entity

Code

public function bundle() {
  return $this->entityTypeId;
}