You are here

public function ResourceType::getBundle in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/jsonapi/src/ResourceType/ResourceType.php \Drupal\jsonapi\ResourceType\ResourceType::getBundle()
  2. 10 core/modules/jsonapi/src/ResourceType/ResourceType.php \Drupal\jsonapi\ResourceType\ResourceType::getBundle()

Gets the bundle.

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.

See also

\Drupal\Core\Entity\EntityInterface::bundle

1 call to ResourceType::getBundle()
ResourceType::getPath in core/modules/jsonapi/src/ResourceType/ResourceType.php
Get the resource path.

File

core/modules/jsonapi/src/ResourceType/ResourceType.php, line 133

Class

ResourceType
Value object containing all metadata for a JSON:API resource type.

Namespace

Drupal\jsonapi\ResourceType

Code

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