public function ResourceType::setRelatableResourceTypes in JSON:API 8
Same name and namespace in other branches
- 8.2 src/ResourceType/ResourceType.php \Drupal\jsonapi\ResourceType\ResourceType::setRelatableResourceTypes()
Sets the relatable resource types.
Parameters
array $relatable_resource_types: The resource types with which this resource type may have a relationship. The array should be a multi-dimensional array keyed by public field name whose values are an array of resource types. There may be duplicate across resource types across fields, but not within a field.
File
- src/
ResourceType/ ResourceType.php, line 231
Class
- ResourceType
- Value object containing all metadata for a JSON API resource type.
Namespace
Drupal\jsonapi\ResourceTypeCode
public function setRelatableResourceTypes(array $relatable_resource_types) {
$this->relatableResourceTypes = $relatable_resource_types;
}