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

Breadcrumb

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

function StreamInterface::getContents

Returns the remaining contents in a string

Return value

string

Throws

\RuntimeException if unable to read or an error occurs while reading.

5 methods override StreamInterface::getContents()
AppendStream::getContents in vendor/guzzlehttp/psr7/src/AppendStream.php
Returns the remaining contents in a string
BufferStream::getContents in vendor/guzzlehttp/psr7/src/BufferStream.php
Returns the remaining contents in a string
FnStream::getContents in vendor/guzzlehttp/psr7/src/FnStream.php
Returns the remaining contents in a string
PumpStream::getContents in vendor/guzzlehttp/psr7/src/PumpStream.php
Returns the remaining contents in a string
Stream::getContents in vendor/guzzlehttp/psr7/src/Stream.php
Returns the remaining contents in a string

File

vendor/psr/http-message/src/StreamInterface.php, line 143

Class

StreamInterface
Describes a data stream.

Namespace

Psr\Http\Message

Code

public function getContents() : string;

API Navigation

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