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

Breadcrumb

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

function ResourceIdentifier::getArity

Gets the ResourceIdentifier's arity.

One must check self::hasArity() before calling this method.

Return value

int The arity.

File

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

Class

ResourceIdentifier
Represents a JSON:API resource identifier object.

Namespace

Drupal\jsonapi\JsonApiResource

Code

public function getArity() {
    assert($this->hasArity());
    return $this->meta[static::ARITY_KEY];
}

API Navigation

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