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
- 9 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
- main 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 uses \Drupal\Core\StringTranslation\StringTranslationTrait extends \Drupal\Core\StreamWrapper\LocalStream
- class \Drupal\file_test\StreamWrapper\DummyRemoteStreamWrapper extends \Drupal\Core\StreamWrapper\PublicStream
- class \Drupal\Core\StreamWrapper\PublicStream uses \Drupal\Core\StringTranslation\StringTranslationTrait extends \Drupal\Core\StreamWrapper\LocalStream
Expanded class hierarchy of DummyRemoteStreamWrapper
1 file declares its use of DummyRemoteStreamWrapper
- FileDeleteRecursiveRemoteTest.php in core/
tests/ Drupal/ KernelTests/ Core/ File/ FileDeleteRecursiveRemoteTest.php
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 16
Namespace
Drupal\file_test\StreamWrapperView source
class DummyRemoteStreamWrapper extends PublicStream {
/**
* {@inheritdoc}
*/
public function getName() {
return 'Dummy files (remote)';
}
/**
* {@inheritdoc}
*/
public function getDescription() {
return 'Dummy wrapper for testing (remote).';
}
public function realpath() {
return FALSE;
}
}
Members
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.