You are here

function DummyRemoteStreamWrapper::realpath in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/file/tests/file_test/src/StreamWrapper/DummyRemoteStreamWrapper.php \Drupal\file_test\StreamWrapper\DummyRemoteStreamWrapper::realpath()

Returns canonical, absolute path of the resource.

Implementation placeholder. PHP's realpath() does not support stream wrappers. We provide this as a default so that individual wrappers may implement their own solutions.

Return value

string Returns a string with absolute pathname on success (implemented by core wrappers), or FALSE on failure or if the registered wrapper does not provide an implementation.

Overrides LocalStream::realpath

File

core/modules/file/tests/file_test/src/StreamWrapper/DummyRemoteStreamWrapper.php, line 35
Contains \Drupal\file_test\StreamWrapper\DummyRemoteStreamWrapper.

Class

DummyRemoteStreamWrapper
Helper class for testing the stream wrapper registry.

Namespace

Drupal\file_test\StreamWrapper

Code

function realpath() {
  return FALSE;
}