You are here

public function oEmbedStream::stream_cast in oEmbed 8

Retrieve the underlying stream resource.

This method is called in response to stream_select().

Parameters

int $cast_as: Can be STREAM_CAST_FOR_SELECT when stream_select() is calling stream_cast() or STREAM_CAST_AS_STREAM when stream_cast() is called for other uses.

Return value

resource|false The underlying stream resource or FALSE if stream_select() is not supported.

Overrides PhpStreamWrapperInterface::stream_cast

See also

stream_select()

http://php.net/manual/streamwrapper.stream-cast.php

File

src/StreamWrapper/oEmbedStream.php, line 313
Create a oEmbed Stream Wrapper class.

Class

oEmbedStream
@file Create a oEmbed Stream Wrapper class.

Namespace

Drupal\oembed\StreamWrapper

Code

public function stream_cast($cast_as) {

  // TODO: Implement stream_cast() method.
}