public function ResourceTypeRepositoryInterface::getByTypeName in JSON:API 8.2
Same name and namespace in other branches
- 8 src/ResourceType/ResourceTypeRepositoryInterface.php \Drupal\jsonapi\ResourceType\ResourceTypeRepositoryInterface::getByTypeName()
Gets a specific JSON:API resource type based on a supplied typename.
Parameters
string $type_name: The public typename of a JSON:API resource.
Return value
\Drupal\jsonapi\ResourceType\ResourceType|null The resource type, or NULL if none found.
1 method overrides ResourceTypeRepositoryInterface::getByTypeName()
- ResourceTypeRepository::getByTypeName in src/
ResourceType/ ResourceTypeRepository.php - Gets a specific JSON:API resource type based on a supplied typename.
File
- src/
ResourceType/ ResourceTypeRepositoryInterface.php, line 49
Class
- ResourceTypeRepositoryInterface
- Provides a repository of all JSON:API resource types.
Namespace
Drupal\jsonapi\ResourceTypeCode
public function getByTypeName($type_name);