You are here

public function ResourceIdentifier::hasArity in JSON:API 8.2

Whether this ResourceIdentifier has an arity.

Return value

int TRUE if the ResourceIdentifier has an arity, FALSE otherwise.

1 call to ResourceIdentifier::hasArity()
ResourceIdentifier::getArity in src/JsonApiResource/ResourceIdentifier.php
Gets the ResourceIdentifier's arity.

File

src/JsonApiResource/ResourceIdentifier.php, line 129

Class

ResourceIdentifier
Represents a JSON:API resource identifier object.

Namespace

Drupal\jsonapi\JsonApiResource

Code

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