Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. EntityBase.php

function 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;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal