class DummyRemoteStreamWrapper

Same name and namespace in other branches
  1. 10 core/modules/file/tests/file_test/src/StreamWrapper/DummyRemoteStreamWrapper.php \Drupal\file_test\StreamWrapper\DummyRemoteStreamWrapper
  2. 11.x core/modules/file/tests/file_test/src/StreamWrapper/DummyRemoteStreamWrapper.php \Drupal\file_test\StreamWrapper\DummyRemoteStreamWrapper
  3. 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

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\StreamWrapper
View 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.