You are here

public function FileUploadResponse::setFileEntity in GraphQL 8.4

Sets file entity.

Parameters

\Drupal\file\FileInterface $fileEntity: File entity.

File

src/GraphQL/Response/FileUploadResponse.php, line 27

Class

FileUploadResponse
A response that either has a file entity or some violations.

Namespace

Drupal\graphql\GraphQL\Response

Code

public function setFileEntity(FileInterface $fileEntity) : void {
  $this->fileEntities[] = $fileEntity;
}