function CollectResourceObjectMetaEvent::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/ CollectResourceObjectMetaEvent.php, line 90
Class
- CollectResourceObjectMetaEvent
- Event for collecting resource object metadata of a JSON:API resource types.
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.