function ResourceTypeRepositoryInterface::getByTypeName

Same name in other branches
  1. 9 core/modules/jsonapi/src/ResourceType/ResourceTypeRepositoryInterface.php \Drupal\jsonapi\ResourceType\ResourceTypeRepositoryInterface::getByTypeName()
  2. 8.9.x core/modules/jsonapi/src/ResourceType/ResourceTypeRepositoryInterface.php \Drupal\jsonapi\ResourceType\ResourceTypeRepositoryInterface::getByTypeName()
  3. 11.x 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.

File

core/modules/jsonapi/src/ResourceType/ResourceTypeRepositoryInterface.php, line 49

Class

ResourceTypeRepositoryInterface
Provides a repository of all JSON:API resource types.

Namespace

Drupal\jsonapi\ResourceType

Code

public function getByTypeName($type_name);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.