function EntityBase::bundle

Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::bundle()
  2. 10 core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::bundle()
  3. 11.x core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::bundle()

Overrides EntityInterface::bundle

5 calls to EntityBase::bundle()
EntityBase::access in core/lib/Drupal/Core/Entity/EntityBase.php
Checks data value access.
EntityBase::getConfigDependencyName in core/lib/Drupal/Core/Entity/EntityBase.php
Gets the configuration dependency name.
EntityBase::getListCacheTagsToInvalidate in core/lib/Drupal/Core/Entity/EntityBase.php
The list cache tags to invalidate for this entity.
EntityBase::toUrl in core/lib/Drupal/Core/Entity/EntityBase.php
Gets the URL object for the entity.
EntityBase::urlRouteParameters in core/lib/Drupal/Core/Entity/EntityBase.php
Gets an array of placeholders for this entity.
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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.