You are here

public function ResourceIdentifier::getId in Drupal 10

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

Gets the ResourceIdentifier's ID.

Return value

string The ID.

File

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

Class

ResourceIdentifier
Represents a JSON:API resource identifier object.

Namespace

Drupal\jsonapi\JsonApiResource

Code

public function getId() {
  return $this->id;
}