function ReadOnlyStream::stream_truncate
Same name in other branches
- 8.9.x core/lib/Drupal/Core/StreamWrapper/ReadOnlyStream.php \Drupal\Core\StreamWrapper\ReadOnlyStream::stream_truncate()
- 10 core/lib/Drupal/Core/StreamWrapper/ReadOnlyStream.php \Drupal\Core\StreamWrapper\ReadOnlyStream::stream_truncate()
- 11.x core/lib/Drupal/Core/StreamWrapper/ReadOnlyStream.php \Drupal\Core\StreamWrapper\ReadOnlyStream::stream_truncate()
Overrides PhpStreamWrapperInterface::stream_truncate
File
-
core/
lib/ Drupal/ Core/ StreamWrapper/ ReadOnlyStream.php, line 172
Class
- ReadOnlyStream
- Defines a read-only Drupal stream wrapper base class.
Namespace
Drupal\Core\StreamWrapperCode
public function stream_truncate($new_size) {
trigger_error('stream_truncate() not supported for read-only stream wrappers', E_USER_WARNING);
return FALSE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.