ResourceTypeRepositoryInterface
interface ResourceTypeRepositoryInterface (View source)
| internal | JSON:API maintains no PHP API since its API is the HTTP API. This class may change at any time and this will break any dependencies on it. |
Provides a repository of all JSON:API resource types.
Methods
all()
Gets all JSON:API resource types.
get(string $entity_type_id, string $bundle)
Gets a specific JSON:API resource type based on entity type ID and bundle.
ResourceType|null
getByTypeName(string $type_name)
Gets a specific JSON:API resource type based on a supplied typename.
Details
ResourceType[]
all()
Gets all JSON:API resource types.
ResourceType
get(string $entity_type_id, string $bundle)
Gets a specific JSON:API resource type based on entity type ID and bundle.
ResourceType|null
getByTypeName(string $type_name)
Gets a specific JSON:API resource type based on a supplied typename.