public function S3Url::getKey in AmazonS3 7.2
Return the S3 object key.
Return value
string
1 call to S3Url::getKey()
- S3Url::getImageStyleUrl in src/
S3Url.php - Return the image style URL associated with this URL.
File
- src/
S3Url.php, line 56
Class
- S3Url
- Represents an s3:// stream URL.
Namespace
Drupal\amazons3Code
public function getKey() {
// Remove the leading slash getPath() keeps in the path.
return substr($this
->getPath(), 1);
}