function ResourceType::getBundle
Same name in other branches
- 9 core/modules/jsonapi/src/ResourceType/ResourceType.php \Drupal\jsonapi\ResourceType\ResourceType::getBundle()
- 8.9.x core/modules/jsonapi/src/ResourceType/ResourceType.php \Drupal\jsonapi\ResourceType\ResourceType::getBundle()
- 11.x 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
File
-
core/
modules/ jsonapi/ src/ ResourceType/ ResourceType.php, line 136
Class
- ResourceType
- Value object containing all metadata for a JSON:API resource type.
Namespace
Drupal\jsonapi\ResourceTypeCode
public function getBundle() {
return $this->bundle;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.