public function PhpStreamWrapperInterface::stream_cast in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/StreamWrapper/PhpStreamWrapperInterface.php \Drupal\Core\StreamWrapper\PhpStreamWrapperInterface::stream_cast()
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.
See also
http://php.net/manual/streamwrapper.stream-cast.php
1 method overrides PhpStreamWrapperInterface::stream_cast()
- LocalStream::stream_cast in core/
lib/ Drupal/ Core/ StreamWrapper/ LocalStream.php - Retrieve the underlying stream resource.
File
- core/
lib/ Drupal/ Core/ StreamWrapper/ PhpStreamWrapperInterface.php, line 69 - Contains \Drupal\Core\StreamWrapper\PhpStreamWrapperInterface.
Class
- PhpStreamWrapperInterface
- Defines a generic PHP stream wrapper interface.
Namespace
Drupal\Core\StreamWrapperCode
public function stream_cast($cast_as);