function CollectRelationshipMetaEvent::__construct
Same name and namespace in other branches
- 11.x core/modules/jsonapi/src/Events/CollectRelationshipMetaEvent.php \Drupal\jsonapi\Events\CollectRelationshipMetaEvent::__construct()
Constructs a new CollectRelationshipMetaEvent object.
Parameters
\Drupal\jsonapi\JsonApiResource\ResourceObject $resourceObject: The resource object.
string $relationshipFieldName: The relationship field name.
File
-
core/
modules/ jsonapi/ src/ Events/ CollectRelationshipMetaEvent.php, line 41
Class
- CollectRelationshipMetaEvent
- Event for collecting the relationship metadata of a JSON:API resource object.
Namespace
Drupal\jsonapi\EventsCode
public function __construct(private readonly ResourceObject $resourceObject, private readonly string $relationshipFieldName) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.