class DummyRemoteStreamWrapper
Same name and namespace in other branches
- 10 core/modules/file/tests/file_test/src/StreamWrapper/DummyRemoteStreamWrapper.php \Drupal\file_test\StreamWrapper\DummyRemoteStreamWrapper
- 11.x core/modules/file/tests/file_test/src/StreamWrapper/DummyRemoteStreamWrapper.php \Drupal\file_test\StreamWrapper\DummyRemoteStreamWrapper
- 8.9.x core/modules/file/tests/file_test/src/StreamWrapper/DummyRemoteStreamWrapper.php \Drupal\file_test\StreamWrapper\DummyRemoteStreamWrapper
Helper class for testing the stream wrapper registry.
Dummy remote stream wrapper implementation (dummy-remote://).
Basically just the public scheme but not returning a local file for realpath.
Hierarchy
- class \Drupal\Core\StreamWrapper\LocalStream implements \Drupal\Core\StreamWrapper\StreamWrapperInterface
- class \Drupal\Core\StreamWrapper\PublicStream extends \Drupal\Core\StreamWrapper\LocalStream
- class \Drupal\file_test\StreamWrapper\DummyRemoteStreamWrapper extends \Drupal\Core\StreamWrapper\PublicStream
- class \Drupal\Core\StreamWrapper\PublicStream extends \Drupal\Core\StreamWrapper\LocalStream
Expanded class hierarchy of DummyRemoteStreamWrapper
1 string reference to 'DummyRemoteStreamWrapper'
- file_test.services.yml in core/
modules/ file/ tests/ file_test/ file_test.services.yml - core/modules/file/tests/file_test/file_test.services.yml
1 service uses DummyRemoteStreamWrapper
- stream_wrapper.dummy_remote in core/
modules/ file/ tests/ file_test/ file_test.services.yml - Drupal\file_test\StreamWrapper\DummyRemoteStreamWrapper
File
-
core/
modules/ file/ tests/ file_test/ src/ StreamWrapper/ DummyRemoteStreamWrapper.php, line 14
Namespace
Drupal\file_test\StreamWrapperView source
class DummyRemoteStreamWrapper extends PublicStream {
/**
* {@inheritdoc}
*/
public function getName() {
return t('Dummy files (remote)');
}
/**
* {@inheritdoc}
*/
public function getDescription() {
return t('Dummy wrapper for simpletest (remote).');
}
public function realpath() {
return FALSE;
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.