You are here

public function ResourceIdentifierInterface::getResourceType in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/jsonapi/src/JsonApiResource/ResourceIdentifierInterface.php \Drupal\jsonapi\JsonApiResource\ResourceIdentifierInterface::getResourceType()
  2. 9 core/modules/jsonapi/src/JsonApiResource/ResourceIdentifierInterface.php \Drupal\jsonapi\JsonApiResource\ResourceIdentifierInterface::getResourceType()

Gets the resource identifier's JSON:API resource type.

Return value

\Drupal\jsonapi\ResourceType\ResourceType The JSON:API resource type.

File

core/modules/jsonapi/src/JsonApiResource/ResourceIdentifierInterface.php, line 43

Class

ResourceIdentifierInterface
An interface for identifying a related resource.

Namespace

Drupal\jsonapi\JsonApiResource

Code

public function getResourceType();