public function ResourceTypeField::hasMany in Drupal 8
Same name and namespace in other branches
- 9 core/modules/jsonapi/src/ResourceType/ResourceTypeField.php \Drupal\jsonapi\ResourceType\ResourceTypeField::hasMany()
- 10 core/modules/jsonapi/src/ResourceType/ResourceTypeField.php \Drupal\jsonapi\ResourceType\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\ResourceTypeCode
public function hasMany() {
return !$this->hasOne;
}