public function ResourceTypeRepositoryInterface::getByTypeName in Drupal 8
Same name and namespace in other branches
- 9 core/modules/jsonapi/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 core/
modules/ jsonapi/ src/ ResourceType/ ResourceTypeRepository.php - Gets a specific JSON:API resource type based on a supplied typename.
File
- core/
modules/ jsonapi/ 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);