function PhpStreamWrapperInterface::dir_rewinddir

Same name in other branches
  1. 9 core/lib/Drupal/Core/StreamWrapper/PhpStreamWrapperInterface.php \Drupal\Core\StreamWrapper\PhpStreamWrapperInterface::dir_rewinddir()
  2. 8.9.x core/lib/Drupal/Core/StreamWrapper/PhpStreamWrapperInterface.php \Drupal\Core\StreamWrapper\PhpStreamWrapperInterface::dir_rewinddir()
  3. 11.x core/lib/Drupal/Core/StreamWrapper/PhpStreamWrapperInterface.php \Drupal\Core\StreamWrapper\PhpStreamWrapperInterface::dir_rewinddir()

Rewind directory handle.

This method is called in response to rewinddir(). Should reset the output generated by PhpStreamWrapperInterface::dir_readdir. The next call to PhpStreamWrapperInterface::dir_readdir should return the first entry in the location returned by PhpStreamWrapperInterface::dir_opendir.

Return value

bool Returns TRUE on success or FALSE on failure.

See also

rewinddir()

PhpStreamWrapperInterface::dir_readdir()

http://php.net/manual/en/streamwrapper.dir-rewinddir.php

2 methods override PhpStreamWrapperInterface::dir_rewinddir()
DummyExternalReadOnlyWrapper::dir_rewinddir in core/modules/file/tests/file_test/src/StreamWrapper/DummyExternalReadOnlyWrapper.php
Rewind directory handle.
LocalStream::dir_rewinddir in core/lib/Drupal/Core/StreamWrapper/LocalStream.php
Rewind directory handle.

File

core/lib/Drupal/Core/StreamWrapper/PhpStreamWrapperInterface.php, line 74

Class

PhpStreamWrapperInterface
Defines a generic PHP stream wrapper interface.

Namespace

Drupal\Core\StreamWrapper

Code

public function dir_rewinddir();

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.