public function ResourceIdentifier::getArity in JSON:API 8.2
Gets the ResourceIdentifier's arity.
One must check self::hasArity() before calling this method.
Return value
int The arity.
File
- src/
JsonApiResource/ ResourceIdentifier.php, line 141
Class
- ResourceIdentifier
- Represents a JSON:API resource identifier object.
Namespace
Drupal\jsonapi\JsonApiResourceCode
public function getArity() {
assert($this
->hasArity());
return $this->meta[static::ARITY_KEY];
}