function ResourceTypeField::hasOne
Same name in other branches
- 9 core/modules/jsonapi/src/ResourceType/ResourceTypeField.php \Drupal\jsonapi\ResourceType\ResourceTypeField::hasOne()
- 10 core/modules/jsonapi/src/ResourceType/ResourceTypeField.php \Drupal\jsonapi\ResourceType\ResourceTypeField::hasOne()
- 11.x core/modules/jsonapi/src/ResourceType/ResourceTypeField.php \Drupal\jsonapi\ResourceType\ResourceTypeField::hasOne()
Whether the field can only have one value.
Return value
bool TRUE if the field can have only one value, FALSE otherwise.
File
-
core/
modules/ jsonapi/ src/ ResourceType/ ResourceTypeField.php, line 125
Class
- ResourceTypeField
- Abstract value object containing all metadata for a JSON:API resource field.
Namespace
Drupal\jsonapi\ResourceTypeCode
public function hasOne() {
return $this->hasOne;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.