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

Breadcrumb

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

function StreamFactoryInterface::createStream

Create a new stream from a string.

The stream SHOULD be created with a temporary resource.

Parameters

string $content String content with which to populate the stream.:

Return value

StreamInterface

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

File

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

Class

StreamFactoryInterface

Namespace

Psr\Http\Message

Code

public function createStream(string $content = '') : StreamInterface;

API Navigation

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