function DummyExternalReadOnlyWrapper::stream_cast
Same name and namespace in other branches
- 9 core/modules/file/tests/file_test/src/StreamWrapper/DummyExternalReadOnlyWrapper.php \Drupal\file_test\StreamWrapper\DummyExternalReadOnlyWrapper::stream_cast()
- 11.x core/modules/file/tests/file_test/src/StreamWrapper/DummyExternalReadOnlyWrapper.php \Drupal\file_test\StreamWrapper\DummyExternalReadOnlyWrapper::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.
Overrides PhpStreamWrapperInterface::stream_cast
File
-
core/
modules/ file/ tests/ file_test/ src/ StreamWrapper/ DummyExternalReadOnlyWrapper.php, line 89
Class
- DummyExternalReadOnlyWrapper
- Helper class for testing the stream wrapper registry.
Namespace
Drupal\file_test\StreamWrapperCode
public function stream_cast($cast_as) {
return FALSE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.