protected function FieldResolver::getAllBundlesForEntityType in JSON:API 8.2
Same name and namespace in other branches
- 8 src/Context/FieldResolver.php \Drupal\jsonapi\Context\FieldResolver::getAllBundlesForEntityType()
Gets all bundle IDs for a given entity type.
Parameters
string $entity_type_id: The entity type for which to get bundles.
Return value
string[] The bundle IDs.
1 call to FieldResolver::getAllBundlesForEntityType()
- FieldResolver::collectResourceTypesForReference in src/
Context/ FieldResolver.php - Build a list of resource types depending on which bundles are referenced.
File
- src/
Context/ FieldResolver.php, line 624
Class
- FieldResolver
- A service that evaluates external path expressions against Drupal fields.
Namespace
Drupal\jsonapi\ContextCode
protected function getAllBundlesForEntityType($entity_type_id) {
return array_keys($this->entityTypeBundleInfo
->getBundleInfo($entity_type_id));
}