private function S3fsPathProcessorImageStyles::isValidScheme in S3 File System 8.3
Same name and namespace in other branches
- 4.0.x src/PathProcessor/S3fsPathProcessorImageStyles.php \Drupal\s3fs\PathProcessor\S3fsPathProcessorImageStyles::isValidScheme()
Check if scheme is Amazon S3 image style supported.
Parameters
string $scheme: Scheme (ex 's3' for s3://) to test.
Return value
bool TRUE if s3fs will generate image styles, FALSE otherwise.
1 call to S3fsPathProcessorImageStyles::isValidScheme()
- S3fsPathProcessorImageStyles::processInbound in src/
PathProcessor/ S3fsPathProcessorImageStyles.php - Processes the inbound path.
File
- src/
PathProcessor/ S3fsPathProcessorImageStyles.php, line 75
Class
- S3fsPathProcessorImageStyles
- Defines a path processor to rewrite image styles URLs.
Namespace
Drupal\s3fs\PathProcessorCode
private function isValidScheme($scheme) {
return in_array($scheme, [
'public',
's3',
]);
}