public function S3fsStream::stream_cast in S3 File System 8.2
Cast the stream to return the underlying file resource
Parameters
int $cast_as: STREAM_CAST_FOR_SELECT or STREAM_CAST_AS_STREAM
Return value
resource
Overrides PhpStreamWrapperInterface::stream_cast
File
- src/
StreamWrapper/ S3fsStream.php, line 776
Class
- S3fsStream
- Defines a Drupal s3fs (s3fs://) stream wrapper class.
Namespace
Drupal\s3fs\StreamWrapperCode
public function stream_cast($cast_as) {
$this
->_debug("stream_cast({$cast_as}) called.");
return $this->body
->getStream();
}