function ResourceTypeField::hasMany

Whether the field can have many values.

Return value

bool TRUE if the field can have more than one value, FALSE otherwise.

File

core/modules/jsonapi/src/ResourceType/ResourceTypeField.php, line 135

Class

ResourceTypeField
Abstract value object containing all metadata for a JSON:API resource field.

Namespace

Drupal\jsonapi\ResourceType

Code

public function hasMany() {
  return !$this->hasOne;
}

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