Same name and namespace in other branches
  1. 8.9.x core/modules/jsonapi/src/JsonApiResource/ResourceIdentifier.php \Drupal\jsonapi\JsonApiResource\ResourceIdentifier::getTypeName()
  2. 9 core/modules/jsonapi/src/JsonApiResource/ResourceIdentifier.php \Drupal\jsonapi\JsonApiResource\ResourceIdentifier::getTypeName()

Gets the ResourceIdentifier's JSON:API resource type name.

Return value

string The JSON:API resource type name.

Overrides ResourceIdentifierInterface::getTypeName

1 call to ResourceIdentifier::getTypeName()
ResourceIdentifier::getResourceType in core/modules/jsonapi/src/JsonApiResource/ResourceIdentifier.php
Gets the resource identifier's JSON:API resource type.

File

core/modules/jsonapi/src/JsonApiResource/ResourceIdentifier.php, line 97

Class

ResourceIdentifier
Represents a JSON:API resource identifier object.

Namespace

Drupal\jsonapi\JsonApiResource

Code

public function getTypeName() {
  return $this->resourceTypeName;
}