public function S3fsFileService::validScheme in S3 File System 4.0.x
Same name and namespace in other branches
- 8.3 src/S3fsFileService.php \Drupal\s3fs\S3fsFileService::validScheme()
@todo Remove when Drupal 8.9 support ends.
File
- src/
S3fsFileService.php, line 202
Class
- S3fsFileService
- Provides helpers to operate on files and stream wrappers.
Namespace
Drupal\s3fsCode
public function validScheme($scheme) {
if (method_exists($this->decorated, 'validScheme')) {
return $this->decorated
->validScheme($scheme);
}
else {
@trigger_error('S3FS: FileSystem::validScheme() Has been removed in core. Use \\Drupal\\Core\\StreamWrapper\\StreamWrapperManagerInterface::isValidScheme() instead. See https://www.drupal.org/node/3035273', E_USER_ERROR);
}
}