Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ResourceIdentifier.php

function ResourceIdentifier::getId

Gets the ResourceIdentifier's ID.

Return value

string The ID.

Overrides ResourceIdentifierInterface::getId

1 call to ResourceIdentifier::getId()
ResourceIdentifier::withArity in core/modules/jsonapi/src/JsonApiResource/ResourceIdentifier.php
Returns a copy of the given ResourceIdentifier with the given arity.

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;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal