public function ResourceTypeRepositoryInterface::get in JSON:API 8.2
Same name and namespace in other branches
- 8 src/ResourceType/ResourceTypeRepositoryInterface.php \Drupal\jsonapi\ResourceType\ResourceTypeRepositoryInterface::get()
Gets a specific JSON:API resource type based on entity type ID and bundle.
Parameters
string $entity_type_id: The entity type ID.
string $bundle: The ID for the bundle to find. If the entity type does not have a bundle, then the entity type ID again.
Return value
\Drupal\jsonapi\ResourceType\ResourceType The requested JSON:API resource type, if it exists. NULL otherwise.
See also
\Drupal\Core\Entity\EntityInterface::bundle()
1 method overrides ResourceTypeRepositoryInterface::get()
- ResourceTypeRepository::get in src/
ResourceType/ ResourceTypeRepository.php - Gets a specific JSON:API resource type based on entity type ID and bundle.
File
- src/
ResourceType/ ResourceTypeRepositoryInterface.php, line 38
Class
- ResourceTypeRepositoryInterface
- Provides a repository of all JSON:API resource types.
Namespace
Drupal\jsonapi\ResourceTypeCode
public function get($entity_type_id, $bundle);