function ResourceIdentifier::hasArity

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

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 core/modules/jsonapi/src/JsonApiResource/ResourceIdentifier.php
Gets the ResourceIdentifier's arity.

File

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

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