Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. UploadedFile.php

function UploadedFile::getStream

Overrides UploadedFileInterface::getStream

1 call to UploadedFile::getStream()
UploadedFile::moveTo in vendor/guzzlehttp/psr7/src/UploadedFile.php
Move the uploaded file to a new location.

File

vendor/guzzlehttp/psr7/src/UploadedFile.php, line 148

Class

UploadedFile

Namespace

GuzzleHttp\Psr7

Code

public function getStream() : StreamInterface {
    $this->validateActive();
    if ($this->stream instanceof StreamInterface) {
        return $this->stream;
    }
    
    /** @var string $file */
    $file = $this->file;
    return new LazyOpenStream($file, 'r+');
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal