public function ResourceTypeRepositoryInterface::get in JSON:API 8
Same name and namespace in other branches
- 8.2 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.
Return value
\Drupal\jsonapi\ResourceType\ResourceType The requested JSON API resource type, if it exists. NULL otherwise.
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 31
Class
- ResourceTypeRepositoryInterface
- Provides a repository of all JSON API resource types.
Namespace
Drupal\jsonapi\ResourceTypeCode
public function get($entity_type_id, $bundle);