public function LocalStream::stream_cast

Gets the underlying stream resource for stream_select().

Parameters

int $cast_as: Can be STREAM_CAST_FOR_SELECT or STREAM_CAST_AS_STREAM.

Return value

resource|false The underlying stream resource or FALSE if stream_select() is not supported.

See also

http://php.net/manual/streamwrapper.stream-cast.php

File

drupal/core/lib/Drupal/Core/StreamWrapper/LocalStream.php, line 353
Definition of Drupal\Core\StreamWrapper\LocalStream.

Class

LocalStream
Defines a Drupal stream wrapper base class for local files.

Namespace

Drupal\Core\StreamWrapper

Code

public function stream_cast($cast_as) {
  return false;
}