You are here

public function ResourceTypeRepositoryInterface::getByTypeName in JSON:API 8

Same name and namespace in other branches
  1. 8.2 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 42

Class

ResourceTypeRepositoryInterface
Provides a repository of all JSON API resource types.

Namespace

Drupal\jsonapi\ResourceType

Code

public function getByTypeName($type_name);