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

Breadcrumb

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

function StreamFactoryInterface::createStreamFromResource

Create a new stream from an existing resource.

The stream MUST be readable and may be writable.

Parameters

resource $resource PHP resource to use as basis of stream.:

Return value

StreamInterface

2 methods override StreamFactoryInterface::createStreamFromResource()
HttpFactory::createStreamFromResource in vendor/guzzlehttp/psr7/src/HttpFactory.php
Create a new stream from an existing resource.
Psr17Factory::createStreamFromResource in vendor/php-http/discovery/src/Psr17Factory.php

File

vendor/psr/http-factory/src/StreamFactoryInterface.php, line 44

Class

StreamFactoryInterface

Namespace

Psr\Http\Message

Code

public function createStreamFromResource($resource) : StreamInterface;

API Navigation

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