function 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(ResourceObject $resourceObject, string $relationshipFieldName) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.