8.3.x Entity.php public Entity::bundle()
8.0.x Entity.php public Entity::bundle()
8.1.x Entity.php public Entity::bundle()
8.2.x Entity.php public Entity::bundle()
8.4.x Entity.php public Entity::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.

Overrides EntityInterface::bundle

4 calls to Entity::bundle()
Entity::access in core/lib/Drupal/Core/Entity/Entity.php
Checks data value access.
Entity::getConfigDependencyName in core/lib/Drupal/Core/Entity/Entity.php
Gets the configuration dependency name.
Entity::toUrl in core/lib/Drupal/Core/Entity/Entity.php
Gets the URL object for the entity.
Entity::urlRouteParameters in core/lib/Drupal/Core/Entity/Entity.php
Gets an array of placeholders for this entity.
1 method overrides Entity::bundle()
ContentEntityBase::bundle in core/lib/Drupal/Core/Entity/ContentEntityBase.php
Gets the bundle of the entity.

File

core/lib/Drupal/Core/Entity/Entity.php, line 148

Class

Entity
Defines a base entity class.

Namespace

Drupal\Core\Entity

Code

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