private function S3fsPathProcessorImageStyles::isImageStylePath in S3 File System 4.0.x
Same name and namespace in other branches
- 8.3 src/PathProcessor/S3fsPathProcessorImageStyles.php \Drupal\s3fs\PathProcessor\S3fsPathProcessorImageStyles::isImageStylePath()
Check if the path is a s3 image style path.
Parameters
string $path: Path to be checked.
Return value
bool TRUE if path starts with s3fs image style prefix, FALSE otherwise.
1 call to S3fsPathProcessorImageStyles::isImageStylePath()
- S3fsPathProcessorImageStyles::processInbound in src/
PathProcessor/ S3fsPathProcessorImageStyles.php - Processes the inbound path.
File
- src/
PathProcessor/ S3fsPathProcessorImageStyles.php, line 62
Class
- S3fsPathProcessorImageStyles
- Defines a path processor to rewrite image styles URLs.
Namespace
Drupal\s3fs\PathProcessorCode
private function isImageStylePath($path) {
return strpos($path, static::IMAGE_STYLE_PATH_PREFIX) === 0;
}