function CollectRelationshipMetaEvent::setMetaValue
Sets a meta value.
Parameters
array|string $property: The key or array of keys.
mixed $value: The value.
Return value
$this
File
-
core/
modules/ jsonapi/ src/ Events/ CollectRelationshipMetaEvent.php, line 86
Class
- CollectRelationshipMetaEvent
- Event for collecting the relationship metadata of a JSON:API resource object.
Namespace
Drupal\jsonapi\EventsCode
public function setMetaValue(array|string $property, mixed $value) : self {
NestedArray::setValue($this->meta, (array) $property, $value, TRUE);
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.