You are here

public function ResourceIdentifierTrait::getId in JSON:API 8.2

File

src/JsonApiResource/ResourceIdentifierTrait.php, line 35

Class

ResourceIdentifierTrait
Used to associate an object like an exception to a particular resource.

Namespace

Drupal\jsonapi\JsonApiResource

Code

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