function ResourceIdentifierTrait::getId

Same name in other branches
  1. 9 core/modules/jsonapi/src/JsonApiResource/ResourceIdentifierTrait.php \Drupal\jsonapi\JsonApiResource\ResourceIdentifierTrait::getId()
  2. 10 core/modules/jsonapi/src/JsonApiResource/ResourceIdentifierTrait.php \Drupal\jsonapi\JsonApiResource\ResourceIdentifierTrait::getId()
  3. 11.x core/modules/jsonapi/src/JsonApiResource/ResourceIdentifierTrait.php \Drupal\jsonapi\JsonApiResource\ResourceIdentifierTrait::getId()

File

core/modules/jsonapi/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();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.